Function vapcore_snapshot::verify_old_block[][src]

pub fn verify_old_block(
    rng: &mut OsRng,
    header: &Header,
    engine: &dyn Engine,
    chain: &BlockChain,
    always: bool
) -> Result<(), VapcoreError>

Verify an old block with the given header, engine, blockchain, body. If always is set, it will perform the fullest verification possible. If not, it will take a random sample to determine whether it will do heavy or light verification.