First compiling version of per-block-proc refactor

This commit is contained in:
Paul Hauner
2019-03-06 15:22:45 +11:00
parent a15ed0acd3
commit 40f74c9b26
20 changed files with 907 additions and 586 deletions

View File

@@ -0,0 +1,19 @@
use crate::errors::{TransferInvalid as Invalid, TransferValidationError as Error};
use ssz::TreeHash;
use types::beacon_state::helpers::verify_bitfield_length;
use types::*;
/// Verify validity of ``slashable_attestation`` fields.
///
/// Returns `Ok(())` if all fields are valid.
///
/// Spec v0.4.0
pub fn verify_transfer(
state: &BeaconState,
transfer: &Transfer,
spec: &ChainSpec,
) -> Result<(), Error> {
// TODO: verify transfer.
Ok(())
}