Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StateDir is the name of the directory located inside the node's data // directory which contains the CometBFT state. StateDir = "consensus" // ConfigDir is the name of the CometBFT configuration directory. ConfigDir = "config" )
Variables ¶
This section is empty.
Functions ¶
func ConsensusAddressesToCometBFT ¶
ConsensusAddressesToCometBFT converts given addresses from the form pubkey@IP:port to the form ID@IP:port where ID is the lowercase SHA256-20 hash of the pubkey.
func GetExternalAddress ¶
GetExternalAddress returns the configured CometBFT external address.
func InitDataDir ¶
InitDataDir initializes the data directory for CometBFT.
func NewLogAdapter ¶
NewLogAdapter creates a new adapter that adapts our logger to CometBFT APIs.
func PublicKeysToCometBFT ¶
PublicKeysToCometBFT hashes given public keys using lowercase SHA256-20.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.