Blockchain.5-GoodNodeinclude AbstractNode with type ev = Event.t with type value = Block.blocktype value = Block.blockThe type of the values for which consensus is being reached.
type ev = Event.tThe type of the events being handled.
The type representing a node and its state. Consists of apllying the value and node_data to the template.
val init : int -> Abstractions.Network.links -> Abstractions.Network.region -> tCreate the initial state of a node.
val state_id : t -> intReturn an integer that identifies the state of the node.
val chain_height : t -> intObtain the height of the chain stored in the node.