Module nakamoto_net::simulator
source · Expand description
A simple P2P network simulator. Acts as the reactor, but without doing any I/O.
Structs
Inbox of scheduled state machine inputs to be delivered to the simulated nodes.
Simulation options.
A scheduled protocol input.
A peer-to-peer node simulation.
Enums
Simulated protocol input.
Constants
Maximum number of events buffered per peer.
Minimum latency between peers.
Traits
A simulated peer. Protocol instances have to be wrapped in this type to be simulated.