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

Commit 75e4f04

Browse files
author
Jan Xie
committed
Merge pull request #341 from corbinbs/develop
pyethapp's on_new_head_candidate callbacks are not called when head_candidate changed during validation
2 parents 04c196b + e890b1a commit 75e4f04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ethereum/chain.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ def add_transaction(self, transaction):
363363
# we might have a new head_candidate (due to ctx switches in pyethapp)
364364
if self.head_candidate != head_candidate:
365365
log.debug('head_candidate changed during validation, trying again')
366-
self.add_transaction(transaction)
367-
return
366+
return self.add_transaction(transaction)
368367

369368
self.pre_finalize_state_root = head_candidate.state_root
370369
head_candidate.finalize()

0 commit comments

Comments
 (0)