Expand description
Copyright (c) 2022 MASSA LABS info@massa.net Bootstrap crate
At start up, if now is after genesis timestamp, the node will bootstrap from one of the provided bootstrap servers.
On server side, the server will query consensus for the graph and the ledger, execution for execution related data and network for the peer list.
Modulesยง
- bindings ๐
- client ๐
- error ๐
- listener ๐
- messages ๐
- server ๐
- start the bootstrapping system using
start_bootstrap_serverOnce your node will be ready, you may want other to bootstrap from you. - settings ๐
- tools ๐
- white_
black_ list - white/black list
Structsยง
- Bootstrap
Client Message Deserializer - Deserializer for
BootstrapClientMessage - Bootstrap
Client Message Serializer - Serializer for
BootstrapClientMessage - Bootstrap
Config - Bootstrap configuration.
- Bootstrap
Manager - handle on the bootstrap server
- Bootstrap
Server Message Deserializer - Deserializer for
BootstrapServerMessage - Bootstrap
Server Message Deserializer Args - Bootstrap Message der args
- Bootstrap
Server Message Serializer - Serializer for
BootstrapServerMessage - Bootstrap
TcpListener - TODO: this should be crate-private. currently needed for models testing
- Default
Connector - Initiates a connection with given timeout in milliseconds
- Global
Bootstrap State - a collection of the bootstrap state snapshots of all relevant modules
Enumsยง
- Bootstrap
Client Message - Messages used during bootstrap by client
- Bootstrap
Error - Encapsulates the various failure contexts for the bootstrap process, both client and server side
- Bootstrap
Server Message - Messages used during bootstrap by server
- IpType
- Bootstrap IP protocol version setting.
Functionsยง
- get_
state - Uses the cond-var pattern to handle sig-int cancellation.
Make sure that the passed in
interruptedshares its Arc with a sig-int handler setup. - start_
bootstrap_ server - See module level documentation for details