diff --git a/crates/gwyneth/src/exex.rs b/crates/gwyneth/src/exex.rs index f11dd2ff3ec7..d3e6df503aba 100644 --- a/crates/gwyneth/src/exex.rs +++ b/crates/gwyneth/src/exex.rs @@ -118,13 +118,18 @@ impl Rollup { println!("transactions: {:?}", transactions); let all_transactions: Vec = decode_transactions(&meta.txList); - let node_chain_id = BASE_CHAIN_ID + node_idx as u64; - + let node_chain_id = BASE_CHAIN_ID + (node_idx as u64) * 100000; + let filtered_transactions: Vec = all_transactions .into_iter() .filter(|tx| tx.chain_id() == Some(node_chain_id)) .collect(); + if filtered_transactions.len() == 0 { + println!("no transactions for chain: {}", node_chain_id); + continue; + } + let attrs = GwynethPayloadAttributes { inner: EthPayloadAttributes { timestamp: block.timestamp,