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

cmd/evm: fixup issues with requests in t8n #30584

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

lightclient
Copy link
Member

This fixes a few issues I missed in #29052.

  • requests must be hex encoded, so added a helper to marshal.
  • The statedb was committed too early and so the result of the system calls was lost.
  • For devnet-4 we need to pull off the type byte prefix from the request data.


// Gather the execution-layer triggered requests.
var requests [][]byte
if chainConfig.IsPrague(vmContext.BlockNumber, vmContext.Time) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting that this processing is placed after the block rewards. The spec doesn't explicitly say which ("at end end of") is correct, and it doesn't matter, since neither of these syscalls are influenced by the balances.

If they were, one could use the block reward to trigger some diff between two clients that had a different order.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman holiman added this to the 1.14.12 milestone Oct 13, 2024
@holiman holiman merged commit 2246d66 into ethereum:master Oct 13, 2024
2 of 3 checks passed
holiman pushed a commit that referenced this pull request Nov 19, 2024
This fixes a few issues missed in #29052:

* `requests` must be hex encoded, so added a helper to marshal.
* The statedb was committed too early and so the result of the system
calls was lost.
* For devnet-4 we need to pull off the type byte prefix from the request
data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants