Skip to content

Flatten EIP-7251 Consolidation Requests encoding#12167

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

Flatten EIP-7251 Consolidation Requests encoding#12167
somnergy merged 9 commits intomainfrom
som/pectra4_3

Conversation

@somnergy
Copy link
Copy Markdown
Member

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

@somnergy somnergy added the pectra label Oct 1, 2024
@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 11, 2024
@somnergy
Copy link
Copy Markdown
Member Author

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

@somnergy somnergy merged commit 6c82d93 into main Oct 11, 2024
@somnergy somnergy deleted the som/pectra4_3 branch October 11, 2024 12:47
const DepositRequestType byte = 0x00
const ConsolidationRequestType byte = 0x02
const WithdrawalRequestDataLen = 76 // addr + pubkey + amt
const ConsolidationRequestDataLen = 116 // addr + sourcePubkey + targetPubkey
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/eip7251.go

Copy link
Copy Markdown
Member 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>
@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#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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants