fix(rpc): enforce blockHash constraint in append_matching_block_logs (#22007)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Emma Jamieson-Hoare
2026-02-09 21:45:53 +00:00
committed by GitHub
parent 8d7583b6fb
commit b3fe168548

View File

@@ -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;