Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 54554a5

Browse files
committed
fix: transaction block scope
1 parent 950d15f commit 54554a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/chain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def add_transaction(self, transaction):
294294
# if unsuccessful the prerequisites were not fullfilled
295295
# and the tx is invalid, state must not have changed
296296
log.debug('invalid tx', error=e)
297-
assert transaction not in self.get_transactions()
297+
assert transaction not in head_candidate.get_transactions()
298298
head_candidate.state_root = old_state_root # reset
299299
return False
300300

0 commit comments

Comments
 (0)