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

all: implement EIP-6110, execution layer triggered deposits #29431

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lightclient
Copy link
Member

Still WIP.

This PR implements EIP-6110: Supply validator deposits on chain. It also sketches out the base for Prague in the engine API types. I plan to base future Prague EIP work against this PR.

@rjl493456442
Copy link
Member

We added some logics in downloader when we introduce withdrawal, i guess it's same for deposit?

if deposits == nil {
b.header.DepositsHash = nil
} else if len(deposits) == 0 {
b.header.DepositsHash = &EmptyWithdrawalsHash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EmptyDepositsHash

b = b.WithWithdrawals(withdrawals)

// TODO(matt): copy this
b.deposits = deposits
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.g. b.deposits = slices.Clone(deposits) ?

@MariusVanDerWijden
Copy link
Member

We need to allow prague in fcuV3 as well

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.

None yet

3 participants