Skip to content

Commit

Permalink
refactor: improve event filtering by using a reference for current bl…
Browse files Browse the repository at this point in the history
…ock hash in eth.rs
  • Loading branch information
virajbhartiya committed Nov 28, 2024
1 parent 2b25529 commit 3dcec22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/methods/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ async fn new_eth_tx_receipt<DB: Blockstore + Send + Sync + 'static>(
events.retain(|event| {
if let Ok(block_hash) = event.tipset_key.cid() {
let event_block_hash: EthHash = block_hash.into();
event_block_hash == *current_block_hash
&event_block_hash == current_block_hash
} else {
false
}
Expand Down

0 comments on commit 3dcec22

Please sign in to comment.