Skip to content

Commit dcee8d6

Browse files
committed
ethereum: Don't look for traces in empty final blocks
1 parent 4a96bb8 commit dcee8d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chain/ethereum/src/block_stream.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,9 @@ where
491491
// Note that head_ancestor is a child of subgraph_ptr.
492492
let eth_adapter = self.eth_adapter.clone();
493493

494-
let block_with_calls = if !self.include_calls_in_blocks {
494+
let block_with_calls = if !self.include_calls_in_blocks
495+
|| head_ancestor.transaction_receipts.is_empty()
496+
{
495497
Box::new(future::ok(EthereumBlockWithCalls {
496498
ethereum_block: head_ancestor,
497499
calls: vec![],

0 commit comments

Comments
 (0)