Don't expose IndexDb throughout the crate

This commit is contained in:
Luke Parker
2024-08-27 00:44:11 -04:00
parent 9ab8ba0215
commit 2bddf00222
5 changed files with 42 additions and 11 deletions

View File

@@ -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 {}",