[][src]Module snarkos_testing::network

Constants

CONNECTION_FREQUENCY_LONG
CONNECTION_FREQUENCY_SHORT
CONNECTION_FREQUENCY_SHORT_TIMEOUT
LOCALHOST

Functions

accept_all_messages

Starts a fake node that accepts all tcp connections received by the given peer listener

accept_channel

Returns the next tcp channel connected to the listener

connect_channel

Returns a tcp channel connected to the address

initialize_test_server

Returns a server struct with given argumnets

random_socket_address

Returns a random tcp socket address

simulate_active_node

Starts a fake node that accepts all tcp connections at the given socket address

sleep

Puts the current tokio thread to sleep for given milliseconds

start_test_server

Starts a server on a new thread. Takes full ownership of server.