-
Notifications
You must be signed in to change notification settings - Fork 840
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
EIP-7742 Engine API Changes #7840
Draft
siladu
wants to merge
7
commits into
hyperledger:main
Choose a base branch
from
siladu:eip-7742_engine-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e82536b
EIP-7742 Add targetBlobCount to engine_newPayloadV4
siladu 62b1d8f
EIP-7742 Add targetBlobCount and maximumBlobCount to engine_forkchoic…
siladu 485b93a
Add targetBlobCount to payloadId
siladu f7dc9aa
Add targetBlobCount to preparePayload
siladu 14a8e55
EIP-7742 - wire targetBlobCount to block creator
siladu cb02d25
EIP-7742 Fix AT and update TODOs
siladu 6703c62
Fix ATs after changing withdrawals payloadId
siladu 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 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 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 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
96 changes: 93 additions & 3 deletions
96
...sources/jsonrpc/engine/cancun/test-cases/block-production/10_cancun_build_on_genesis.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,95 @@ | ||
{ | ||
"request" : {"jsonrpc":"2.0","id":5,"method":"engine_forkchoiceUpdatedV3","params":[{"headBlockHash":"0x33235e7b7a78302cdb54e5ddba66c7ae49b01c1f5498bb00cd0c8ed5206784bf","safeBlockHash":"0x0000000000000000000000000000000000000000000000000000000000000000","finalizedBlockHash":"0x0000000000000000000000000000000000000000000000000000000000000000"},{"timestamp":"0x1236","prevRandao":"0xc13da06dc53836ca0766057413b9683eb9a8773bbb8fcc5691e41c25b56dda1d","suggestedFeeRecipient":"0x0000000000000000000000000000000000000000","withdrawals":[{"index":"0xb","validatorIndex":"0x0","address":"0x0000000000000000000000000000000000000000","amount":"0x64"},{"index":"0xc","validatorIndex":"0x1","address":"0x0100000000000000000000000000000000000000","amount":"0x64"},{"index":"0xd","validatorIndex":"0x2","address":"0x0200000000000000000000000000000000000000","amount":"0x64"},{"index":"0xe","validatorIndex":"0x3","address":"0x0300000000000000000000000000000000000000","amount":"0x64"},{"index":"0xf","validatorIndex":"0x4","address":"0x0400000000000000000000000000000000000000","amount":"0x64"},{"index":"0x10","validatorIndex":"0x5","address":"0x0500000000000000000000000000000000000000","amount":"0x64"},{"index":"0x11","validatorIndex":"0x6","address":"0x0600000000000000000000000000000000000000","amount":"0x64"},{"index":"0x12","validatorIndex":"0x7","address":"0x0700000000000000000000000000000000000000","amount":"0x64"},{"index":"0x13","validatorIndex":"0x8","address":"0x0800000000000000000000000000000000000000","amount":"0x64"},{"index":"0x14","validatorIndex":"0x9","address":"0x0900000000000000000000000000000000000000","amount":"0x64"}],"parentBeaconBlockRoot":"0x062367f0b23e2d49ad5e770d9ad17b83c0c1c625c3f9a290cd9572b3fc6cfc9e"}]}, | ||
"response" : {"jsonrpc":"2.0","id":5,"result":{"payloadStatus":{"status":"VALID","latestValidHash":"0x33235e7b7a78302cdb54e5ddba66c7ae49b01c1f5498bb00cd0c8ed5206784bf","validationError":null},"payloadId":"0x29e12df730769ab6"}}, | ||
"statusCode" : 200 | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"id": 5, | ||
"method": "engine_forkchoiceUpdatedV3", | ||
"params": [ | ||
{ | ||
"headBlockHash": "0x33235e7b7a78302cdb54e5ddba66c7ae49b01c1f5498bb00cd0c8ed5206784bf", | ||
"safeBlockHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"finalizedBlockHash": "0x0000000000000000000000000000000000000000000000000000000000000000" | ||
}, | ||
{ | ||
"timestamp": "0x1236", | ||
"prevRandao": "0xc13da06dc53836ca0766057413b9683eb9a8773bbb8fcc5691e41c25b56dda1d", | ||
"suggestedFeeRecipient": "0x0000000000000000000000000000000000000000", | ||
"withdrawals": [ | ||
{ | ||
"index": "0xb", | ||
"validatorIndex": "0x0", | ||
"address": "0x0000000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0xc", | ||
"validatorIndex": "0x1", | ||
"address": "0x0100000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0xd", | ||
"validatorIndex": "0x2", | ||
"address": "0x0200000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0xe", | ||
"validatorIndex": "0x3", | ||
"address": "0x0300000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0xf", | ||
"validatorIndex": "0x4", | ||
"address": "0x0400000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0x10", | ||
"validatorIndex": "0x5", | ||
"address": "0x0500000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0x11", | ||
"validatorIndex": "0x6", | ||
"address": "0x0600000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0x12", | ||
"validatorIndex": "0x7", | ||
"address": "0x0700000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0x13", | ||
"validatorIndex": "0x8", | ||
"address": "0x0800000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
}, | ||
{ | ||
"index": "0x14", | ||
"validatorIndex": "0x9", | ||
"address": "0x0900000000000000000000000000000000000000", | ||
"amount": "0x64" | ||
} | ||
], | ||
"parentBeaconBlockRoot": "0x062367f0b23e2d49ad5e770d9ad17b83c0c1c625c3f9a290cd9572b3fc6cfc9e" | ||
} | ||
] | ||
}, | ||
"response": { | ||
"jsonrpc": "2.0", | ||
"id": 5, | ||
"result": { | ||
"payloadStatus": { | ||
"status": "VALID", | ||
"latestValidHash": "0x33235e7b7a78302cdb54e5ddba66c7ae49b01c1f5498bb00cd0c8ed5206784bf", | ||
"validationError": null | ||
}, | ||
"payloadId": "0x744ab0889222f836" | ||
} | ||
}, | ||
"statusCode": 200 | ||
} |
2 changes: 1 addition & 1 deletion
2
...esources/jsonrpc/engine/cancun/test-cases/block-production/12_cancun_get_built_block.json
This file contains 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 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 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 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 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 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 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 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.
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.
Note, added a (<< 32) left shift for withdrawals to keep the hashcodes evenly distributed by using the same pattern as the other fields.
This change impacts the shanghai and cancun ATs