Make.2-Blocktype block = block_contents Simulator.Block.tThe type of the block. Application of block_contents to t.
val create : Simulator.Block.node_id -> block -> block_contents -> blockCreate a new block.
val null : block_contents -> blockReturns the null block
val height : 'a Simulator.Block.t -> intReturns the height of a block.
val parent : 'a Simulator.Block.t -> Simulator.Block.node_id optionReturns the parent of a block.
val minter : 'a Simulator.Block.t -> Simulator.Block.node_idReturns the id of the node that minted the block.
val id : 'a Simulator.Block.t -> Simulator.Block.block_idReturn the id of a block given block.
val opt_id : 'a Simulator.Block.t option -> Simulator.Block.block_idReturn the id of a block option. Returns -1 if NONE.
val balances : 'a Simulator.Block.t -> Simulator.Block.balancesReturn the balances contained in a block.
val timestamp : 'a Simulator.Block.t -> Simulator.Clock.tReturn the timestamp of the block's creation.
val difficulty : 'a Simulator.Block.t -> intReturn the difficulty of the block.
val total_difficulty : 'a Simulator.Block.t -> intReturn the total difficulty of the chain.
val total_coins : 'a Simulator.Block.t -> floatReturn the total amount of coins.
val genesis_pow : Simulator.Block.node_id -> int -> block_contents -> blockReturn the genesis block for PoW.
val genesis_pos : Simulator.Block.node_id -> block_contents -> blockReturn the genesis block for PoS.
val equals : 'a Simulator.Block.t -> 'a Simulator.Block.t -> boolCheck if two blocks are equal (have the same ID).