pub fn validate_block(
    block: &BlockInfo,
    previous: &BlockInfo,
    module: &PoWModule
) -> Result<()>
Expand description

A block is considered valid when the following rules apply: 1. Block version is correct for its height 2. Parent hash is equal to the hash of the previous block 3. Block height increments previous block height by 1 4. Timestamp is valid based on PoWModule validation 5. Block hash is valid based on PoWModule validation Additional validity rules can be applied.