Crate massa_bootstrap
source ยท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_server
Once your node will be ready, you may want other to bootstrap from you. - settings ๐
- tools ๐
- white/black list
Structsยง
- Deserializer for
BootstrapClientMessage
- Serializer for
BootstrapClientMessage
- Bootstrap configuration.
- Abstraction layer over data produced by the listener, and transported over to the worker via a channel handle on the bootstrap server
- Deserializer for
BootstrapServerMessage
- Bootstrap Message der args
- Serializer for
BootstrapServerMessage
- TODO: this should be crate-private. currently needed for models testing
- Initiates a connection with given timeout in milliseconds
- a collection of the bootstrap state snapshots of all relevant modules
Enumsยง
- Messages used during bootstrap by client
- Encapsulates the various failure contexts for the bootstrap process, both client and server side
- Messages used during bootstrap by server
- Bootstrap IP protocol version setting.
Functionsยง
- Uses the cond-var pattern to handle sig-int cancellation. Make sure that the passed in
interrupted
shares its Arc with a sig-int handler setup. - See module level documentation for details