Make a dedicated IndexDb

This commit is contained in:
Luke Parker
2024-08-26 23:24:49 -04:00
parent 66f3428051
commit 1e8f4e6156
4 changed files with 47 additions and 34 deletions

View File

@@ -112,7 +112,7 @@ pub trait ScannerFeed: Send + Sync {
// Check the ID of this block is the expected ID
{
let expected =
ScannerDb::<S>::block_id(&self.db, number).expect("requested a block which wasn't indexed");
crate::index::IndexDb::block_id(&self.db, number).expect("requested a block which wasn't indexed");
if block.id() != expected {
panic!(
"finalized chain reorganized from {} to {} at {}",