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_DELAY
Default delay after the sampling window before Node prunes the block.
DEFAULT_SAMPLING_WINDOW
Default maximum age of blocks Node will synchronise, sample, and store.
MIN_PRUNING_DELAY
Minimum pruning delay that can be used in NodeBuilder.
MIN_SAMPLING_WINDOW
Minimum configurable sampling window that can be used in NodeBuilder.

Type Aliases§

Result
Alias of Result with NodeError error type