Module multi_validator_libp2p::infra
source · Expand description
general infra used for this example
Structs§
- Represents a combined-network-based run
- The configuration file to be used for this run
- Represents a libp2p-based run
- Arguments passed to the orchestrator
- Represents a Push CDN-based run
Constants§
- Base port for builder
- Base port for validator
Traits§
- Defines the behavior of a “run” of the network with a given configuration
Functions§
- Helper function to calculate the number of transactions to send per node per round
- Generate a local address for node with index
node_index
, offsetting from portBASE_PORT
. - Helper function to generate transactions a given node should send
- Sets correct builder_url and registers a builder with orchestrator if this node is running one. Returns a
BuilderTask
if this node is going to be running a builder. - Reads a network configuration from a given filepath
- Main entry point for validators
- Reads the orchestrator initialization config from the command line
- Runs the orchestrator