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 ¶
View Source
var Flags = flag.NewFlagSet("", flag.ContinueOnError)
Flags has the configuration flags.
Functions ¶
func GetExternalAddress ¶ added in v0.2011.2
GetExternalAddress returns the configured tendermint external address.
func InitDataDir ¶
InitDataDir initializes the data directory for Tendermint.
func NewLogAdapter ¶
NewLogAdapter creates a new adapter that adapts our logger to Tendermint APIs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.