Test_scenario.Topology
Build static mavryk network topologies.
type node = Mavryk_node.t
type _ t = private
| Mesh : {
size : Internal_pervasives.int;
} -> node Internal_pervasives.list t
| Bottleneck : {
name : Internal_pervasives.string;
left : 'a network;
right : 'b network;
} -> ('a * node * 'b) t
| Net_in_the_middle : {
} -> ('a * 'm * 'b) t
val mesh :
Internal_pervasives.string ->
Internal_pervasives.int ->
node Internal_pervasives.list network
val sub : Internal_pervasives.string -> 'a t -> 'a network
val bottleneck :
Internal_pervasives.string ->
'a network ->
'b network ->
('a * node * 'b) network
val node_count : 'a t -> Internal_pervasives.int
val node_ids :
'a t ->
'a ->
Internal_pervasives.string Internal_pervasives.list
val net_in_the_middle :
Internal_pervasives.string ->
'a network ->
'b network ->
'c network ->
('b * 'a * 'c) network
val build :
?external_peer_ports:Internal_pervasives.int Internal_pervasives.list ->
?base_port:Internal_pervasives.int ->
make_node:
(Internal_pervasives.string ->
expected_connections:Internal_pervasives.int ->
rpc_port:Internal_pervasives.int ->
p2p_port:Internal_pervasives.int ->
Internal_pervasives.int Internal_pervasives.list ->
node) ->
'a network ->
'a