Skip to content

Flatten EIP-7002 withdrawal requests encoding#12138

Merged
somnergy merged 9 commits intomainfrom
som/pectra4_2
Oct 11, 2024
Merged

Flatten EIP-7002 withdrawal requests encoding#12138
somnergy merged 9 commits intomainfrom
som/pectra4_2

Conversation

@somnergy
Copy link
Copy Markdown
Member

@somnergy somnergy 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)

@somnergy somnergy marked this pull request as draft September 30, 2024 14:47
@somnergy somnergy marked this pull request as ready for review October 1, 2024 13:15
@somnergy somnergy 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
@somnergy somnergy 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
@somnergy
Copy link
Copy Markdown
Member Author

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

@somnergy somnergy merged commit 8959ee8 into main Oct 11, 2024
@somnergy somnergy deleted the som/pectra4_2 branch October 11, 2024 10:27
const WithdrawalRequestType byte = 0x01
const DepositRequestType byte = 0x00
const ConsolidationRequestType byte = 0x02
const WithdrawalRequestDataLen = 76 // addr + pubkey + amt
Copy link
Copy Markdown
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>
@VBulikov VBulikov mentioned this pull request Feb 5, 2025
revitteth pushed a commit to 0xPolygon/cdk-erigon that referenced this pull request Mar 21, 2025
Cherry pick erigontech#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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants