Skip to content

Commit 3f3650d

Browse files
committed
exclude current transaction
1 parent efafcfa commit 3f3650d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/ethereum/osaka/fork.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -852,11 +852,6 @@ def process_transaction(
852852
index:
853853
Index of the transaction in the block.
854854
"""
855-
trie_set(
856-
block_output.transactions_trie,
857-
rlp.encode(index),
858-
encode_transaction(tx),
859-
)
860855

861856
intrinsic_gas, calldata_floor_gas_cost = validate_transaction(tx)
862857

@@ -989,6 +984,12 @@ def process_transaction(
989984
receipt,
990985
)
991986

987+
trie_set(
988+
block_output.transactions_trie,
989+
rlp.encode(index),
990+
encode_transaction(tx),
991+
)
992+
992993
block_output.block_logs += tx_output.logs
993994

994995

0 commit comments

Comments
 (0)