Documentation ¶
Index ¶
- func GetTendermintVersion() *version.VersionIdentifier
- func NewLocalClient(mtx *sync.Mutex, app manager_types.Application) *localClient
- type Tendermint
- func (tendermint *Tendermint) Block(height int) *tendermint_types.Block
- func (tendermint *Tendermint) BlockMeta(height int) *tendermint_types.BlockMeta
- func (tendermint *Tendermint) BroadcastTransaction(transaction []byte, callback func(*tmsp_types.Response)) error
- func (tendermint *Tendermint) ChainId() string
- func (tendermint *Tendermint) ConsensusState() *consensus_types.ConsensusState
- func (tendermint *Tendermint) Events() edb_event.EventEmitter
- func (tendermint *Tendermint) Height() int
- func (tendermint *Tendermint) IsListening() bool
- func (tendermint *Tendermint) ListUnconfirmedTxs(maxTxs int) ([]txs.Tx, error)
- func (tendermint *Tendermint) ListValidators() []consensus_types.Validator
- func (tendermint *Tendermint) Listeners() []p2p.Listener
- func (tendermint *Tendermint) NodeInfo() *p2p.NodeInfo
- func (tendermint *Tendermint) PeerConsensusStates() map[string]string
- func (tendermint *Tendermint) Peers() []*consensus_types.Peer
- func (tendermint *Tendermint) PublicValidatorKey() crypto.PubKey
- type TendermintConfig
- func (tmintConfig *TendermintConfig) AssertTendermintConsistency(consensusConfig *config.ModuleConfig, privateValidatorFilePath string)
- func (tmintConfig *TendermintConfig) AssertTendermintDefaults(chainId, workDir, dataDir, rootDir string)
- func (tmintConfig *TendermintConfig) Get(key string) interface{}
- func (tmintConfig *TendermintConfig) GetBool(key string) bool
- func (tmintConfig *TendermintConfig) GetConfig(key string) tendermintConfig.Config
- func (tmintConfig *TendermintConfig) GetFloat64(key string) float64
- func (tmintConfig *TendermintConfig) GetInt(key string) int
- func (tmintConfig *TendermintConfig) GetMap(key string) map[string]interface{}
- func (tmintConfig *TendermintConfig) GetMapString(key string) map[string]string
- func (tmintConfig *TendermintConfig) GetString(key string) string
- func (tmintConfig *TendermintConfig) GetStringSlice(key string) []string
- func (tmintConfig *TendermintConfig) GetTime(key string) time.Time
- func (tmintConfig *TendermintConfig) IsSet(key string) bool
- func (tmintConfig *TendermintConfig) Set(key string, value interface{})
- func (tmintConfig *TendermintConfig) SetDefault(key string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTendermintVersion ¶
func GetTendermintVersion() *version.VersionIdentifier
func NewLocalClient ¶
func NewLocalClient(mtx *sync.Mutex, app manager_types.Application) *localClient
Types ¶
type Tendermint ¶
type Tendermint struct {
// contains filtered or unexported fields
}
func NewTendermint ¶
func NewTendermint(moduleConfig *config.ModuleConfig, application manager_types.Application) (*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(*tmsp_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
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 Eris-DB 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 Eris-DB 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{})
Click to show internal directories.
Click to hide internal directories.