Implement deposit merkle root verification.

It is currently disabled, but it's there for later.
This commit is contained in:
Paul Hauner
2019-03-08 09:26:03 +11:00
parent 60098a051d
commit f479beb87e
4 changed files with 62 additions and 5 deletions

View File

@@ -292,6 +292,9 @@ pub enum DepositInvalid {
///
/// (state_index, deposit_index)
BadIndex(u64, u64),
/// The specified `branch` and `index` did not form a valid proof that the deposit is included
/// in the eth1 deposit root.
BadMerkleProof,
}
impl_into_with_index_without_beacon_error!(DepositValidationError, DepositInvalid);