-
Notifications
You must be signed in to change notification settings - Fork 55
feat: engine_newPayloadV3
: validate, execute & store block
#222
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
2f4b506
wip
fmoletta d08ee6b
Insert cancun time from genesis + update newpayloadv3 parsing
fmoletta 14b8bae
fmt
fmoletta f395676
Merge branch 'main' of https://github.com/lambdaclass/ethrex into sto…
fmoletta 507e969
Update
fmoletta a618b61
Merge branch 'main' of https://github.com/lambdaclass/ethrex into sto…
fmoletta 688fb6e
replace update_x with set_chain_config method for StoreEngine
fmoletta bbb4e52
Merge branch 'main' of https://github.com/lambdaclass/ethrex into sto…
fmoletta e81c9cd
Add payload status methods + validate block header
fmoletta 938ae60
Fix
fmoletta 7c43792
Execute & store block
fmoletta 00ab2e4
Store block number
fmoletta 72c4d29
Remove unwrap
5ce36ce
Fix root computation
2cea78c
Use base fee for block 0 on validation
934a3fd
Compute roots for genesis block
b085177
Set initial base fee for genesis block
904f86a
Update default values for genesis block
38b2ef7
Revert change to block validation
96f0da7
Fix gas limit for beacon root contract call
abf5a8f
Add more tracing
ee655a0
clippy
4b03b11
Update test
45afb13
Merge branch 'main' of github.com:lambdaclass/ethereum_rust into vali…
fmoletta e39caf5
Add test
fmoletta 762e9aa
Use 30_000_000 as gas_limit for both tx and block env when executing …
fmoletta 54bcb27
Merge branch 'main' into validate-payload
fmoletta c0fa93d
Merge branch 'main' into validate-payload
fmoletta 14d19a9
Fix typo
fmoletta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im surprised these changes don't break any of the spec test. Does the rlp and the state root remain equal with these values (empty vec vs None, 0 vs None)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The state root shouldn't be affected (as it is built from the accounts in the alloc). The rlp does change, and we do need it to change as with the current version block validation failed when running with kurtosis as the genesis block's hash didn't match the parent_block_hash of the following block