Module node

Source
Expand description

Node that connects to Celestia’s P2P network.

Upon creation, Node will try to connect to Celestia’s P2P network and then proceed with synchronization and data sampling of the blocks.

Structs§

Node
Celestia node.
NodeBuilder
Node builder.
PeerTrackerInfo
Statistics of the connected peers
SyncingInfo
Status of the synchronization.

Enums§

DaserError
Representation of all the errors that can occur in Daser component.
HeaderExError
Representation of all the errors that can occur in HeaderEx component.
NodeBuilderError
Representation of all the errors that can occur when interacting with the NodeBuilder.
NodeError
Representation of all the errors that can occur when interacting with the Node.
P2pError
Representation of all the errors that can occur in P2p component.
SyncerError
Representation of all the errors that can occur in Syncer component.

Constants§

DEFAULT_PRUNING_WINDOW
Default maximum age of blocks before they get pruned.
DEFAULT_PRUNING_WINDOW_IN_MEMORY
Default pruninig window for in-memory stores.
SAMPLING_WINDOW
Default maximum age of blocks Node will synchronise, sample, and store.

Type Aliases§

Result
Alias of Result with NodeError error type