Allow epoch cache with zero validators.

This commit is contained in:
Paul Hauner
2019-03-17 23:32:27 +11:00
parent 979353f136
commit 191761f356
4 changed files with 16 additions and 18 deletions

View File

@@ -3,11 +3,8 @@ use hashing::hash;
use merkle_proof::verify_merkle_proof;
use ssz::ssz_encode;
use ssz_derive::Encode;
use std::collections::HashMap;
use types::*;
pub type PublicKeyValidatorIndexHashmap = HashMap<PublicKey, u64>;
/// Indicates if a `Deposit` is valid to be included in a block in the current epoch of the given
/// state.
///