package
0.0.0-20240305091328-aa4207a4b25d
Repository: https://github.com/badrootd/celestia-core.git
Documentation: pkg.go.dev
# Functions
CustomReactors allows you to add custom reactors (name -> p2p.Reactor) to the node's Switch.
DefaultDBProvider returns a database using the DBBackend and DBDir specified in the ctx.Config.
DefaultGenesisDocProviderFunc returns a GenesisDocProvider that loads the GenesisDoc from the config.GenesisFile() on the filesystem.
DefaultMetricsProvider returns Metrics build using Prometheus client library if Prometheus is enabled.
DefaultNewNode returns a CometBFT node with default settings for the PrivValidator, ClientCreator, GenesisDoc, and DBProvider.
LoadStateFromDBOrGenesisDocProvider attempts to load the state from the database, or creates one using the given genesisDocProvider.
NewNode returns a new, ready to go, CometBFT Node.
StateProvider overrides the state provider used by state sync to retrieve trusted app hashes and build a State object for bootstrapping the node.
# Structs
DBContext specifies config information for loading a new DB.
No description provided by the author
No description provided by the author
Node is the highest level interface to a full CometBFT node.
No description provided by the author
No description provided by the author
# Type aliases
DBProvider takes a DBContext and returns an instantiated DB.
GenesisDocProvider returns a GenesisDoc.
MetricsProvider returns a consensus, p2p and mempool Metrics.
Option sets a parameter for the node.
Provider takes a config and a logger and returns a ready to go Node.