mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
Don't expose IndexDb throughout the crate
This commit is contained in:
@@ -113,8 +113,7 @@ pub trait ScannerFeed: Send + Sync {
|
||||
|
||||
// Check the ID of this block is the expected ID
|
||||
{
|
||||
let expected = crate::index::IndexDb::block_id(getter, number)
|
||||
.expect("requested a block which wasn't indexed");
|
||||
let expected = crate::index::block_id(getter, number);
|
||||
if block.id() != expected {
|
||||
panic!(
|
||||
"finalized chain reorganized from {} to {} at {}",
|
||||
|
||||
Reference in New Issue
Block a user