Fix bugs in deposit processing

This commit is contained in:
Paul Hauner
2019-05-22 18:54:26 +10:00
parent 14d879d75f
commit 892d891977
3 changed files with 33 additions and 43 deletions

View File

@@ -321,8 +321,8 @@ pub enum DepositValidationError {
pub enum DepositInvalid {
/// The deposit index does not match the state index.
BadIndex { state: u64, deposit: u64 },
/// The proof-of-possession does not match the given pubkey.
BadProofOfPossession,
/// The signature (proof-of-possession) does not match the given pubkey.
BadSignature,
/// The withdrawal credentials for the depositing validator did not match the withdrawal
/// credentials of an existing validator with the same public key.
BadWithdrawalCredentials,