tendermint

package
v0.0.0-...-9865f5a Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 73 Imported by: 0

Documentation

Index

Constants

View Source
const (

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

	// CfgABCIPruneStrategy configures the ABCI state pruning strategy.
	CfgABCIPruneStrategy = "tendermint.abci.prune.strategy"
	// CfgABCIPruneNumKept configures the amount of kept heights if pruning is enabled.
	CfgABCIPruneNumKept = "tendermint.abci.prune.num_kept"

	// CfgSentryUpstreamAddress defines nodes for which we act as a sentry for.
	CfgSentryUpstreamAddress = "tendermint.sentry.upstream_address"

	// CfgP2PPersistentPeer configures tendermint's persistent peer(s).
	CfgP2PPersistentPeer = "tendermint.p2p.persistent_peer"
	// CfgP2PPersistenPeersMaxDialPeriod configures the tendermint's peristent peer max dial period.
	CfgP2PPersistenPeersMaxDialPeriod = "tendermint.p2p.persistent_peers_max_dial_period"
	// CfgP2PDisablePeerExchange disables tendermint's peer-exchange (Pex) reactor.
	CfgP2PDisablePeerExchange = "tendermint.p2p.disable_peer_exchange"
	// CfgP2PSeeds configures tendermint's seed node(s).
	CfgP2PSeed = "tendermint.p2p.seed"
	// CfgP2PSeedMode enables the tendermint seed mode.
	CfgP2PSeedMode = "tendermint.p2p.seed_mode"
	// CfgP2PMaxNumInboundPeers configures the max number of inbound peers.
	CfgP2PMaxNumInboundPeers = "tendermint.p2p.max_num_inbound_peers"
	// CfgP2PMaxNumOutboundPeers configures the max number of outbound peers, excluding persistent peers.
	CfgP2PMaxNumOutboundPeers = "tendermint.p2p.max_num_outbound_peers"
	// CfgP2PSendRate is the rate at which packets can be sent, in bytes/second.
	CfgP2PSendRate = "tendermint.p2p.send_rate"
	// CfgP2PRecvRate is the rate at which packets can be received, in bytes/second.
	CfgP2PRecvRate = "tendermint.p2p.recv_rate"
	// CfgP2PUnconditionalPeerIDs configures tendermint's unconditional peer(s).
	CfgP2PUnconditionalPeerIDs = "tendermint.p2p.unconditional_peer_ids"

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

	// CfgDebugUnsafeReplayRecoverCorruptedWAL enables the debug and unsafe
	// automatic corrupted WAL recovery during replay.
	CfgDebugUnsafeReplayRecoverCorruptedWAL = "tendermint.debug.unsafe_replay_recover_corrupted_wal"

	// CfgConsensusMinGasPrice configures the minimum gas price for this validator.
	CfgConsensusMinGasPrice = "consensus.tendermint.min_gas_price"
	// CfgConsensusSubmissionGasPrice configures the gas price used when submitting transactions.
	CfgConsensusSubmissionGasPrice = "consensus.tendermint.submission.gas_price"
	// CfgConsensusSubmissionMaxFee configures the maximum fee that can be set.
	CfgConsensusSubmissionMaxFee = "consensus.tendermint.submission.max_fee"
	// CfgConsensusDebugDisableCheckTx disables CheckTx.
	CfgConsensusDebugDisableCheckTx = "consensus.tendermint.debug.disable_check_tx"

	// StateDir is the name of the directory located inside the node's data
	// directory which contains the tendermint state.
	StateDir = "tendermint"
)

Variables

View Source
var (

	// Flags has the configuration flags.
	Flags = flag.NewFlagSet("", flag.ContinueOnError)
)

Functions

func IsSeed

func IsSeed() bool

IsSeed returns true iff the node is configured as a seed node.

func New

func New(ctx context.Context, dataDir string, identity *identity.Identity, upgrader upgradeAPI.Backend, genesisProvider genesisAPI.Provider) (service.TendermintService, error)

New creates a new Tendermint service.

Types

type SeedService

type SeedService struct {
	// contains filtered or unexported fields
}

SeedService is a Tendermint seed service.

func NewSeed

func NewSeed(dataDir string, identity *identity.Identity, genesisProvider genesis.Provider) (*SeedService, error)

NewSeed creates a new Tendermint seed service.

func (*SeedService) Cleanup

func (srv *SeedService) Cleanup()

Cleanup performs the service specific post-termination cleanup.

func (*SeedService) Name

func (srv *SeedService) Name() string

Name returns the service name.

func (*SeedService) Quit

func (srv *SeedService) Quit() <-chan struct{}

Quit reuturns a channel that will be clsoed when the service terminates.

func (*SeedService) Start

func (srv *SeedService) Start() error

Start starts the service.

func (*SeedService) Stop

func (srv *SeedService) Stop()

Stop halts the service.

Directories

Path Synopsis
Package abci implements the tendermint ABCI application integration.
Package abci implements the tendermint ABCI application integration.
Package api implements the API between Oasis ABCI application and Oasis core.
Package api implements the API between Oasis ABCI application and Oasis core.
apps
beacon
Package beacon implements the beacon application.
Package beacon implements the beacon application.
epochtime_mock
Package epochtimemock implements the mock epochtime application.
Package epochtimemock implements the mock epochtime application.
keymanager
Package keymanager implementes the key manager management applicaiton.
Package keymanager implementes the key manager management applicaiton.
registry
Package registry implements the registry application.
Package registry implements the registry application.
roothash
Package roothash implements the roothash application.
Package roothash implements the roothash application.
staking
Package staking implements the staking application.
Package staking implements the staking application.
Package beacon implements the tendermint backed beacon backend.
Package beacon implements the tendermint backed beacon backend.
Package crypto implementes tendermint specific cryptography.
Package crypto implementes tendermint specific cryptography.
db
Package db implements several Tendermint DB backends.
Package db implements several Tendermint DB backends.
badger
Package badger implements a tendermint DB, backed by BadgerDB.
Package badger implements a tendermint DB, backed by BadgerDB.
tests
Package tests is a collection of tendermint DB backend tests.
Package tests is a collection of tendermint DB backend tests.
Package epochtime implements the tendermint backed epochtime backend.
Package epochtime implements the tendermint backed epochtime backend.
Package epochtimemock implements the mock (settable) tendermint backed epochtime backend.
Package epochtimemock implements the mock (settable) tendermint backed epochtime backend.
Package keymanager provides the tendermint backed key manager management implementation.
Package keymanager provides the tendermint backed key manager management implementation.
Package registry implements the tendermint backed registry backend.
Package registry implements the tendermint backed registry backend.
Package roothash implements the tendermint backed roothash backend.
Package roothash implements the tendermint backed roothash backend.
Package scheduler implements the tendermint backed scheduling backend.
Package scheduler implements the tendermint backed scheduling backend.
Package service provides the tendermint service interface.
Package service provides the tendermint service interface.
Package staking implements the tendermint backed staking token backend.
Package staking implements the tendermint backed staking token backend.

Jump to

Keyboard shortcuts

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