Add tests for BeaconChain persistence + fix bugs

This commit is contained in:
Paul Hauner
2019-11-30 13:33:07 +11:00
parent 10929e8255
commit a2d071e681
9 changed files with 289 additions and 49 deletions

View File

@@ -8,7 +8,7 @@ use types::*;
///
/// Operations are stored in arbitrary order, so it's not a good idea to compare instances
/// of this type (or its encoded form) for equality. Convert back to an `OperationPool` first.
#[derive(Encode, Decode)]
#[derive(Clone, Encode, Decode)]
pub struct PersistedOperationPool<T: EthSpec> {
/// Mapping from attestation ID to attestation mappings.
// We could save space by not storing the attestation ID, but it might