common

package
v0.2400.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

func ConsensusAddressesToCometBFT(addrs []string) ([]string, error)

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

func GetExternalAddress() (*url.URL, error)

GetExternalAddress returns the configured CometBFT external address.

func InitDataDir

func InitDataDir(dataDir string) error

InitDataDir initializes the data directory for CometBFT.

func NewLogAdapter

func NewLogAdapter(suppressDebug bool) tmlog.Logger

NewLogAdapter creates a new adapter that adapts our logger to CometBFT APIs.

func PublicKeysToCometBFT

func PublicKeysToCometBFT(keys []string) ([]string, error)

PublicKeysToCometBFT hashes given public keys using lowercase SHA256-20.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL