Crate massa_bootstrap

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
white/black list

Structsยง

BootstrapClientMessageDeserializer
Deserializer for BootstrapClientMessage
BootstrapClientMessageSerializer
Serializer for BootstrapClientMessage
BootstrapConfig
Bootstrap configuration.
BootstrapManager
handle on the bootstrap server
BootstrapServerMessageDeserializer
Deserializer for BootstrapServerMessage
BootstrapServerMessageDeserializerArgs
Bootstrap Message der args
BootstrapServerMessageSerializer
Serializer for BootstrapServerMessage
BootstrapTcpListener
TODO: this should be crate-private. currently needed for models testing
DefaultConnector
Initiates a connection with given timeout in milliseconds
GlobalBootstrapState
a collection of the bootstrap state snapshots of all relevant modules

Enumsยง

BootstrapClientMessage
Messages used during bootstrap by client
BootstrapError
Encapsulates the various failure contexts for the bootstrap process, both client and server side
BootstrapServerMessage
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 interrupted shares its Arc with a sig-int handler setup.
start_bootstrap_server
See module level documentation for details