Fix bug with epoch caches, add tests

This commit is contained in:
Paul Hauner
2019-03-17 21:07:19 +11:00
parent f71cab8ba2
commit 8677b9e9cc
7 changed files with 120 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ use types::*;
///
/// Returns `Ok(())` if the `SlashableAttestation` is valid, otherwise indicates the reason for invalidity.
///
/// Spec v0.4.0
/// Spec v0.5.0
pub fn verify_slashable_attestation(
state: &BeaconState,
slashable_attestation: &SlashableAttestation,

View File

@@ -94,7 +94,7 @@ pub fn verify_transfer(
///
/// Does not check that the transfer is valid, however checks for overflow in all actions.
///
/// Spec v0.4.0
/// Spec v0.5.0
pub fn execute_transfer(
state: &mut BeaconState,
transfer: &Transfer,