mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
fix(rpc): enforce blockHash constraint in append_matching_block_logs (#22007)
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
committed by
GitHub
parent
8d7583b6fb
commit
b3fe168548
@@ -79,6 +79,10 @@ pub fn append_matching_block_logs<P>(
|
||||
where
|
||||
P: BlockReader<Transaction: SignedTransaction>,
|
||||
{
|
||||
if !filter.matches_block(&block_num_hash) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
// Tracks the index of a log in the entire block.
|
||||
let mut log_index: u64 = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user