-
Notifications
You must be signed in to change notification settings - Fork 933
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
Deposit issues #198
Comments
Is this that bad? Their ETH is just stuck and they'll get it out in phase 2
I'm inclined to agree. I don't think the deposit contract needs to be too paternalistic; it's already (unavoidably) possible to deposit with a bad randao preimage, for example; we could just make deposits fail if they have less than 32 ETH.
Agree! |
I'm inclined to go this route. If less than 32 eth and no existing validator for the pubkey, then fail. |
addressed in #228 |
Issue
There are some known issues in the current deposit contract and deposit processing. This issue will probably be resolved via a couple of PRs
Known issues:
assert deposit_size == DEPOSIT_SIZE
for the creation of a validator, a user can now create a validator with as little as 1 ETH. This validator would be inducted and immediately be kicked out of the validator set.full_deposit_count
to create and broadcast the leaves of the merkle tree. If a< 32 ETH
deposit is made, it does not updatefull_deposit_count
but update the merkle tree, overwriting the previously written leaf. We need to maintain deposit_count separately from full_deposit_count. deposit_count should be incremented upon every successful deposit, should be used to construct the index into the merkle tree, and should be broadcast in the HashChainValue instead of full_deposit_count.The text was updated successfully, but these errors were encountered: