Optimise deposits processing.

This commit is contained in:
Paul Hauner
2019-03-10 08:33:17 +11:00
parent 5f3da0732f
commit 1ca99b8c4c
5 changed files with 182 additions and 38 deletions

View File

@@ -294,6 +294,11 @@ pub enum DepositInvalid {
///
/// (state_index, deposit_index)
BadIndex(u64, u64),
/// The proof-of-possession does not match the given pubkey.
BadProofOfPossession,
/// The withdrawal credentials for the depositing validator did not match the withdrawal
/// credentials of an existing validator with the same public key.
BadWithdrawalCredentials,
/// The specified `branch` and `index` did not form a valid proof that the deposit is included
/// in the eth1 deposit root.
BadMerkleProof,