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

handle an edge case in newpayload block execution #3131

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

g11tech
Copy link
Contributor

@g11tech g11tech commented Oct 31, 2023

handle an edgecase noticed during holesky sync

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #3131 (be4e42b) into master (6795fa6) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.80% <ø> (ø)
blockchain 92.27% <ø> (ø)
client 86.21% <100.00%> (-0.09%) ⬇️
common 98.19% <ø> (ø)
ethash ∅ <ø> (∅)
evm 71.93% <ø> (ø)
rlp ∅ <ø> (∅)
statemanager 90.13% <ø> (ø)
trie 89.76% <ø> (ø)
tx 96.36% <ø> (ø)
util 87.53% <ø> (ø)
vm 76.13% <ø> (ø)

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

// this error can come if the block tries to load a previous block yet not in the chain
// error coding of the evm errors should be a better way to handle this
//
// at Blockchain.getBlock (/home/gajinder/ethereumjs-monorepo/packages/blockchain/src/blockchain.ts:763:15)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this entire stack trace in the logs?

Copy link
Contributor Author

@g11tech g11tech Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the issue clear can remove the trace

Copy link
Contributor

@acolytec3 acolytec3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. Do we need a specific test for this edge case or is this covered by existing tests?

@g11tech
Copy link
Contributor Author

g11tech commented Oct 31, 2023

Generally looks good. Do we need a specific test for this edge case or is this covered by existing tests?

this particular edge case might not be covered ... i think we would need to have a tx that does BLOCKHASH opcode, could add this

@holgerd77 holgerd77 dismissed acolytec3’s stale review November 1, 2023 09:26

See review comment.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would really really like to get things prepared for a release round tomorrow, at least if things work on a somewhat descent level (just re-running Holesky again right now).

I would therefore merge here, maybe we can add an eventual test later on.

Thanks! 🙏

@holgerd77 holgerd77 merged commit ce9ff22 into master Nov 1, 2023
44 checks passed
@holgerd77 holgerd77 deleted the fix-newpayloadres branch November 1, 2023 09:27
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.

3 participants