-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Flatten EIP-7251 Consolidation Requests encoding #12167
Conversation
Even further simplifications can be done, will do in later PRs |
@@ -31,7 +31,8 @@ import ( | |||
const WithdrawalRequestType byte = 0x01 | |||
const DepositRequestType byte = 0x00 | |||
const ConsolidationRequestType byte = 0x02 | |||
const WithdrawalRequestDataLen = 76 // addr + pubkey + amt | |||
const ConsolidationRequestDataLen = 116 // addr + sourcePubkey + targetPubkey |
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.
Duplicated in consensus/misc/eip7251.go
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.
Will remove either/both, going forward. Should do the cleanup after further simplification in next PRs
Cherry pick #12167 into `release/2.61` Co-authored-by: Somnath <snb895@outlook.com>
In summary, does away with a lot of earlier complexities related to parsing and encoding consolidation requests. These are now just byte strings, essentially.
Refer to the following
Needs interface update - erigontech/interfaces#237
(Tasks board - #12106)