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

Flatten EIP-7251 Consolidation Requests encoding #12167

Merged
merged 9 commits into from
Oct 11, 2024
Merged

Conversation

somnathb1
Copy link
Contributor

@somnathb1 somnathb1 commented Oct 1, 2024

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)

@somnathb1 somnathb1 added the pectra The Prague/Electra protocol upgrade label Oct 1, 2024
@somnathb1 somnathb1 added the do-not-merge PR that is in a merge-able state but is waiting for something else to take place before merging label Oct 3, 2024
@somnathb1 somnathb1 removed the do-not-merge PR that is in a merge-able state but is waiting for something else to take place before merging label Oct 11, 2024
@somnathb1
Copy link
Contributor Author

Even further simplifications can be done, will do in later PRs

@somnathb1 somnathb1 merged commit 6c82d93 into main Oct 11, 2024
11 checks passed
@somnathb1 somnathb1 deleted the som/pectra4_3 branch October 11, 2024 12:47
@@ -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
Copy link
Member

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

Copy link
Contributor Author

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

yperbasis added a commit that referenced this pull request Oct 24, 2024
Cherry pick #12167 into `release/2.61`

Co-authored-by: Somnath <snb895@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pectra The Prague/Electra protocol upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants