lighthouse/eth2/state_processing/src/per_block_processing/verify_transfer.rs

21 lines
539 B
Rust
Raw Normal View History

2019-03-06 06:14:54 +00:00
use super::errors::{TransferInvalid as Invalid, TransferValidationError as Error};
use types::*;
2019-03-06 05:24:56 +00:00
/// Indicates if a `Transfer` is valid to be included in a block in the current epoch of the given
/// state.
///
2019-03-06 05:24:56 +00:00
/// Returns `Ok(())` if the `Transfer` is valid, otherwise indicates the reason for invalidity.
///
/// Note: this function is incomplete.
///
/// Spec v0.4.0
pub fn verify_transfer(
2019-03-06 05:24:56 +00:00
_state: &BeaconState,
_transfer: &Transfer,
_spec: &ChainSpec,
) -> Result<(), Error> {
// TODO: verify transfer.
Ok(())
}