Make.Network_state
type t = {
block_height : int; |
epoch : int; |
global_slot : int; |
snarked_ledgers_generated : int; |
blocks_generated : int; |
node_initialization : bool Core_kernel.String.Map.t; |
gossip_received : Gossip_state.t Core_kernel.String.Map.t; |
best_tips_by_node : Mina_base.State_hash.t Core_kernel.String.Map.t; |
blocks_produced_by_node : Mina_base.State_hash.t list Core_kernel.String.Map.t; |
blocks_seen_by_node : Mina_base.State_hash.Set.t Core_kernel.String.Map.t; |
blocks_including_txn : Mina_base.State_hash.Set.t
Mina_transaction.Transaction_hash.Map.t; |
}
val listen :
logger:Logger.t ->
Event_router.t ->
t Pipe_lib.Broadcast_pipe.Reader.t * t Pipe_lib.Broadcast_pipe.Writer.t