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-7002 withdrawal requests encoding #12138

Merged
merged 9 commits into from
Oct 11, 2024
Merged

Flatten EIP-7002 withdrawal requests encoding #12138

merged 9 commits into from
Oct 11, 2024

Conversation

somnathb1
Copy link
Contributor

@somnathb1 somnathb1 commented Sep 30, 2024

In summary, does away with a lot of earlier complexities related to parsing and encoding withdrawal requests. These are now just byte strings, essentially

Refer to the following

Needs interface update - erigontech/interfaces#234

(Tasks board - #12106)

@somnathb1 somnathb1 added the pectra The Prague/Electra protocol upgrade label Sep 30, 2024
@somnathb1 somnathb1 marked this pull request as draft September 30, 2024 14:47
@somnathb1 somnathb1 marked this pull request as ready for review October 1, 2024 13:15
@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 10, 2024
@somnathb1
Copy link
Contributor Author

Can simplify further, would do in subsequent PRs. Need to keep this one straightforward for ease of review.

@somnathb1 somnathb1 merged commit 8959ee8 into main Oct 11, 2024
11 checks passed
@somnathb1 somnathb1 deleted the som/pectra4_2 branch October 11, 2024 10:27
@@ -31,6 +31,7 @@ import (
const WithdrawalRequestType byte = 0x01
const DepositRequestType byte = 0x00
const ConsolidationRequestType byte = 0x02
const WithdrawalRequestDataLen = 76 // addr + pubkey + amt
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/eip7002.go

yperbasis added a commit that referenced this pull request Oct 24, 2024
Cherry pick #12138 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