From 387acd10249d879a183453aa62e79b9c99c148ec Mon Sep 17 00:00:00 2001 From: sprites0 <199826320+sprites0@users.noreply.github.com> Date: Wed, 5 Nov 2025 06:54:43 +0000 Subject: [PATCH] fix: Adjust transaction parser based on observation on all blocks in both networks Tracked by #97 --- src/node/types/reth_compat.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/node/types/reth_compat.rs b/src/node/types/reth_compat.rs index a8225c66a..016ef9371 100644 --- a/src/node/types/reth_compat.rs +++ b/src/node/types/reth_compat.rs @@ -1,5 +1,4 @@ //! Copy of reth codebase to preserve serialization compatibility -use crate::chainspec::TESTNET_CHAIN_ID; use alloy_consensus::{Header, Signed, TxEip1559, TxEip2930, TxEip4844, TxEip7702, TxLegacy}; use alloy_primitives::{Address, BlockHash, Signature, TxKind, U256}; use reth_primitives::TransactionSigned as RethTxSigned; @@ -118,11 +117,8 @@ impl SealedBlock { receipts: Vec, chain_id: u64, ) -> HlBlock { - // NOTE: Filter out system transactions that may be rejected by the EVM (tracked by #97, - // testnet only). - if chain_id == TESTNET_CHAIN_ID { - system_txs = system_txs.into_iter().filter(|tx| tx.receipt.is_some()).collect(); - } + // NOTE: These types of transactions are tracked at #97. + system_txs.retain(|tx| tx.receipt.is_some()); let mut merged_txs = vec![]; merged_txs.extend(system_txs.iter().map(|tx| system_tx_to_reth_transaction(tx, chain_id)));