Client.Admin
Run mavkit-admin-client commands.
Ask a node to trust the address and port of another node.
Ask a node to untrust the address and port of another node.
Same as trust_address
, but do not wait for the process to exit.
Same as untrust_address
, but do not wait for the process to exit.
Connect a node to another peer.
Same as connect_address
, but do not wait for the process to exit.
Kick a peer.
peer
is the identity of the peer to kick. You can get it with Node.wait_for_identity
for instance.
Same as kick_peer
, but do not wait for the process to exit.
Ban a peer.
peer
is the identity of the peer to ban. You can get it with Node.wait_for_identity
for instance.
Same as ban_peer
, but do not wait for the process to exit.
Same as p2p_stat
, but do not wait for the process to exit.
Run mavkit-admin-client inject protocol <protocol_path>
.
Returns the hash of the injected protocol.
val spawn_inject_protocol :
?endpoint:endpoint ->
protocol_path:string ->
t ->
Tezt_wrapper.Process.t
Same as inject_protocol
, but do not wait for the process to exit.
Run mavkit-admin-client list protocols
and return the list of protocol hashes.
Same as list_protocols
, but do not wait for the process to exit.
Run mavkit-admin-client protocol environment
on a protocol hash.
Return its environment version as a string such as "V1"
.