tendermint

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTendermintVersion

func GetTendermintVersion() *version.VersionIdentifier

Types

type Tendermint

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

func NewTendermint

func NewTendermint(moduleConfig *config.ModuleConfig,
	application manager_types.Application,
	logger logging_types.InfoTraceLogger) (*Tendermint, error)

func (*Tendermint) Block

func (tendermint *Tendermint) Block(height int) *tendermint_types.Block

func (*Tendermint) BlockMeta

func (tendermint *Tendermint) BlockMeta(height int) *tendermint_types.BlockMeta

func (*Tendermint) BroadcastTransaction

func (tendermint *Tendermint) BroadcastTransaction(transaction []byte,
	callback func(*abci_types.Response)) error

func (*Tendermint) ChainId

func (tendermint *Tendermint) ChainId() string

func (*Tendermint) ConsensusState

func (tendermint *Tendermint) ConsensusState() *consensus_types.ConsensusState

func (*Tendermint) Events

func (tendermint *Tendermint) Events() edb_event.EventEmitter

func (*Tendermint) Height

func (tendermint *Tendermint) Height() int

func (*Tendermint) IsListening

func (tendermint *Tendermint) IsListening() bool

Consensus implementation

func (*Tendermint) ListUnconfirmedTxs

func (tendermint *Tendermint) ListUnconfirmedTxs(
	maxTxs int) ([]txs.Tx, error)

func (*Tendermint) ListValidators

func (tendermint *Tendermint) ListValidators() []consensus_types.Validator

func (*Tendermint) Listeners

func (tendermint *Tendermint) Listeners() []p2p.Listener

func (*Tendermint) NodeInfo

func (tendermint *Tendermint) NodeInfo() *p2p.NodeInfo

func (*Tendermint) PeerConsensusStates

func (tendermint *Tendermint) PeerConsensusStates() map[string]string

func (*Tendermint) Peers

func (tendermint *Tendermint) Peers() []*consensus_types.Peer

func (*Tendermint) PublicValidatorKey

func (tendermint *Tendermint) PublicValidatorKey() crypto.PubKey

func (*Tendermint) Stop added in v0.17.0

func (tendermint *Tendermint) Stop() bool

Allow for graceful shutdown of node. Returns whether the node was stopped.

type TendermintConfig

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

Tendermint has a self-rolled configuration type defined in tendermint/go-config but over an interface type, which is implemented by default in tendermint/tendermint/config/tendermint.go However, for burrow purposes we can choose different rules for how to load the tendermint configuration and set the defaults. Hence we re-implement go-config.Config on a viper subtree of the loaded burrow configuration file.

func GetTendermintConfig

func GetTendermintConfig(loadedConfig *viper.Viper) *TendermintConfig

func (*TendermintConfig) AssertTendermintConsistency

func (tmintConfig *TendermintConfig) AssertTendermintConsistency(
	consensusConfig *config.ModuleConfig, privateValidatorFilePath string)

func (*TendermintConfig) AssertTendermintDefaults

func (tmintConfig *TendermintConfig) AssertTendermintDefaults(chainId, workDir,
	dataDir, rootDir string)

func (*TendermintConfig) Get

func (tmintConfig *TendermintConfig) Get(key string) interface{}

implement interface github.com/tendermint/go-config/config.Config so that `TMROOT` and config can be circumvented

func (*TendermintConfig) GetBool

func (tmintConfig *TendermintConfig) GetBool(key string) bool

func (*TendermintConfig) GetConfig

func (tmintConfig *TendermintConfig) GetConfig(key string) tendermintConfig.Config

func (*TendermintConfig) GetFloat64

func (tmintConfig *TendermintConfig) GetFloat64(key string) float64

func (*TendermintConfig) GetInt

func (tmintConfig *TendermintConfig) GetInt(key string) int

func (*TendermintConfig) GetMap

func (tmintConfig *TendermintConfig) GetMap(key string) map[string]interface{}

func (*TendermintConfig) GetMapString

func (tmintConfig *TendermintConfig) GetMapString(key string) map[string]string

func (*TendermintConfig) GetString

func (tmintConfig *TendermintConfig) GetString(key string) string

func (*TendermintConfig) GetStringSlice

func (tmintConfig *TendermintConfig) GetStringSlice(key string) []string

func (*TendermintConfig) GetTime

func (tmintConfig *TendermintConfig) GetTime(key string) time.Time

func (*TendermintConfig) IsSet

func (tmintConfig *TendermintConfig) IsSet(key string) bool

func (*TendermintConfig) Set

func (tmintConfig *TendermintConfig) Set(key string, value interface{})

func (*TendermintConfig) SetDefault

func (tmintConfig *TendermintConfig) SetDefault(key string, value interface{})

Jump to

Keyboard shortcuts

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