Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: fix double execution of a newplayload block on fcu #3777

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Oct 29, 2024

as discovered by @jochem-brouwer , the newly block to be added is doubly executed by new payload and then on fcu by the vmexecution's forward run() which gets triggered with the chain update event when the block is inserted in the chain by the fcU.

this two prong execution mechanism iis there to handle various edgecases but in this case causes a race. so delaying the update and letting fcU do the update event should take care of this race.

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 28.05%. Comparing base (e057457) to head (d3cb122).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 67.57% <ø> (ø)
blockchain 83.50% <ø> (ø)
client 0.00% <0.00%> (ø)
common 89.88% <ø> (ø)
devp2p 0.00% <ø> (ø)
evm 64.89% <ø> (ø)
genesis 0.00% <ø> (ø)
mpt 52.09% <ø> (ø)
statemanager 68.84% <ø> (ø)
tx 76.70% <ø> (ø)
util 73.46% <ø> (ø)
vm 57.65% <ø> (ø)
wallet 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@jochem-brouwer
Copy link
Member

LGTM! Will merge once CI passes

@g11tech g11tech merged commit d2f10ab into master Oct 30, 2024
40 of 41 checks passed
@scorbajio scorbajio deleted the fix-doubleexecution branch October 30, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants