mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 08:08:15 -05:00
fix: ensure the pending block has the requested hash (#14096)
This commit is contained in:
@@ -806,9 +806,11 @@ impl<N: ProviderNodeTypes> BlockReader for ConsistentProvider<N> {
|
||||
|block_state| Ok(Some(block_state.block_ref().recovered_block().clone_block())),
|
||||
)
|
||||
}
|
||||
BlockSource::Pending => {
|
||||
Ok(self.canonical_in_memory_state.pending_block().map(|block| block.into_block()))
|
||||
}
|
||||
BlockSource::Pending => Ok(self
|
||||
.canonical_in_memory_state
|
||||
.pending_block()
|
||||
.filter(|block| block.hash() == hash)
|
||||
.map(|block| block.into_block())),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user