common

package
v0.2103.6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 9 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 tendermint state.
	StateDir = "tendermint"

	// ConfigDir is the name of the Tendermint configuration directory.
	ConfigDir = "config"
)
View Source
const (
	// CfgCoreExternalAddress configures the tendermint external address.
	CfgCoreExternalAddress = "consensus.tendermint.core.external_address"

	// CfgCoreListenAddress configures the tendermint core network listen address.
	CfgCoreListenAddress = "consensus.tendermint.core.listen_address"

	// CfgDebugP2PAddrBookLenient configures allowing non-routable addresses.
	CfgDebugP2PAddrBookLenient = "consensus.tendermint.debug.addr_book_lenient"
	// CfgDebugP2PAllowDuplicateIP allows multiple connections from the same IP.
	CfgDebugP2PAllowDuplicateIP = "consensus.tendermint.debug.allow_duplicate_ip"

	// CfgLogDebug configures Tendermint debug logging.
	CfgLogDebug = "consensus.tendermint.log.debug"

	// CfgSubmissionGasPrice configures the gas price used when submitting transactions.
	CfgSubmissionGasPrice = "consensus.tendermint.submission.gas_price"
	// CfgSubmissionMaxFee configures the maximum fee that can be set.
	CfgSubmissionMaxFee = "consensus.tendermint.submission.max_fee"

	// CfgP2PSeed configures tendermint's seed node(s).
	CfgP2PSeed = "consensus.tendermint.p2p.seed"
	// CfgP2PMaxNumInboundPeers configures the max number of inbound peers.
	CfgP2PMaxNumInboundPeers = "consensus.tendermint.p2p.max_num_inbound_peers"
	// CfgP2PMaxNumOutboundPeers configures the max number of outbound peers, excluding persistent peers.
	CfgP2PMaxNumOutboundPeers = "consensus.tendermint.p2p.max_num_outbound_peers"
	// CfgP2PSendRate is the rate at which packets can be sent, in bytes/second.
	CfgP2PSendRate = "consensus.tendermint.p2p.send_rate"
	// CfgP2PRecvRate is the rate at which packets can be received, in bytes/second.
	CfgP2PRecvRate = "consensus.tendermint.p2p.recv_rate"
)

Variables

Flags has the configuration flags.

Functions

func GetExternalAddress added in v0.2011.2

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

GetExternalAddress returns the configured tendermint external address.

func InitDataDir

func InitDataDir(dataDir string) error

InitDataDir initializes the data directory for Tendermint.

func NewLogAdapter

func NewLogAdapter(suppressDebug bool) tmlog.Logger

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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