Skip to content

fix: update withdrawal request container to match consensus spec - #6797

Merged
nflaig merged 1 commit into
electra-forkfrom
nflaig/fix-withdrawal-request
May 16, 2024
Merged

fix: update withdrawal request container to match consensus spec#6797
nflaig merged 1 commit into
electra-forkfrom
nflaig/fix-withdrawal-request

Conversation

@nflaig

@nflaig nflaig commented May 16, 2024

Copy link
Copy Markdown
Member

Motivation

Noticed we are no longer following the consensus spec since #6789, the ssz_static tests are failing and there are issues if execution layer withdrawals are submitted to the network.

Description

Update withdrawal request container to match consensus spec

return {
sourceAddress: bytesToData(withdrawalRequest.sourceAddress),
validatorPublicKey: bytesToData(withdrawalRequest.validatorPublicKey),
validatorPublicKey: bytesToData(withdrawalRequest.validatorPubkey),

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.

There is a inconsistency in the execution apis, right now all EL clients besides Besu use validatorPublicKey, this means pairing with Besu will not work right now if execution layer withdrawals requests are submitted to the network.

For now, we should just follow the spec

I opened a PR to potentially address this inconsistency

Comment thread packages/beacon-node/test/spec/presets/ssz_static.test.ts Outdated
@nflaig
nflaig force-pushed the nflaig/fix-withdrawal-request branch from a7d26dc to 9d1d263 Compare May 16, 2024 17:22
@nflaig

nflaig commented May 16, 2024

Copy link
Copy Markdown
Member Author

Confirmed this fixes issues with other clients, only remaining issue is block production with Besu but that needs to be either fixed on their end or the spec.

@nflaig
nflaig marked this pull request as ready for review May 16, 2024 18:20
@nflaig
nflaig requested a review from a team as a code owner May 16, 2024 18:20
@nflaig
nflaig merged commit 4d8ed98 into electra-fork May 16, 2024
@nflaig
nflaig deleted the nflaig/fix-withdrawal-request branch May 16, 2024 18:23
@wemeetagain

Copy link
Copy Markdown
Member

🎉 This PR is included in v1.22.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants