Block.BlockSigThe signature for a block module.
type block = block_contents tThe type of the block. Application of block_contents to t.
val create : node_id -> block -> block_contents -> blockCreate a new block.
val null : block_contents -> blockReturns the null block
val height : 'a t -> intReturns the height of a block.
val difficulty : 'a t -> intReturn the difficulty of the block.
val total_difficulty : 'a t -> intReturn the total difficulty of the chain.
val total_coins : 'a t -> floatReturn the total amount of coins.
val genesis_pow : node_id -> int -> block_contents -> blockReturn the genesis block for PoW.
val genesis_pos : node_id -> block_contents -> blockReturn the genesis block for PoS.