Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2020 v0.0.1 May 13, 2020 Changes in this version + var ConfigPath func() + var NodeStop func() + var SetConfigFunc func(bool, bool, int) (*config.Config, string) + var SyncTo int64 = 0 + func ExecCommitBlock(appConnConsensus proxy.AppConnConsensus, block *types.Block, logger log.Logger) (*abci.ResponseCommit, error) + func LoadABCITxResponses(db dbm.DB, tx cmn.HexBytes) (abci.ResponseDeliverTx, error) + func LoadConsensusParams(db dbm.DB, height int64) (types.ConsensusParams, error) + func LoadValidators(db dbm.DB, height int64) (*types.ValidatorSet, error) + func MakeGenesisDocFromFile(config *cfg.Config) (*types.GenesisDoc, error) + func SaveLastState(db dbm.DB, lastState State) + func SaveState(db dbm.DB, s State) + func VerifyEvidence(stateDB dbm.DB, s State, evidence types.Evidence) error + type ABCIResponses struct + DeliverTx []*abci.ResponseDeliverTx + EndBlock *abci.ResponseEndBlock + func LoadABCIResponses(db dbm.DB, height int64) (*ABCIResponses, error) + func NewABCIResponses(block *types.Block) *ABCIResponses + func (arz *ABCIResponses) Bytes() []byte + func (arz *ABCIResponses) ResultsHash() []byte + type BlockExecutor struct + func NewBlockExecutor(dbx dbm.DB, db dbm.DB, logger log.Logger, proxyApp proxy.AppConnConsensus, ...) *BlockExecutor + func (blockExec *BlockExecutor) ApplyBlock(s State, blockID types.BlockID, block *types.Block) (State, error) + func (blockExec *BlockExecutor) Commit(block *types.Block) (*abci.ResponseCommit, error) + func (blockExec *BlockExecutor) SetEventBus(eventBus types.BlockEventPublisher) + func (blockExec *BlockExecutor) ValidateBlock(s State, block *types.Block) error + type BlockStoreStateJSON struct + Height int64 + func LoadBlockStoreStateJSON(db dbm.DB) BlockStoreStateJSON + func (bsj BlockStoreStateJSON) Save(db dbm.DB) + type ConsensusParamsInfo struct + ConsensusParams types.ConsensusParams + LastHeightChanged int64 + func (params ConsensusParamsInfo) Bytes() []byte + type ErrAppBlockHeightTooHigh struct + AppHeight int64 + CoreHeight int64 + func (e ErrAppBlockHeightTooHigh) Error() string + type ErrBlockHashMismatch struct + AppHash []byte + CoreHash []byte + Height int64 + func (e ErrBlockHashMismatch) Error() string + type ErrInvalidBlock error + type ErrLastStateMismatch struct + App []byte + Core []byte + Height int64 + func (e ErrLastStateMismatch) Error() string + type ErrNoABCIResponsesForHeight struct + Height int64 + func (e ErrNoABCIResponsesForHeight) Error() string + type ErrNoABCITxResponseForTxHash struct + TxHash []byte + func (e ErrNoABCITxResponseForTxHash) Error() string + type ErrNoConsensusParamsForHeight struct + Height int64 + func (e ErrNoConsensusParamsForHeight) Error() string + type ErrNoLastQueueHashForQueueID struct + QueueID string + func (e ErrNoLastQueueHashForQueueID) Error() string + type ErrNoLastQueueHeightForQueueID struct + QueueID string + func (e ErrNoLastQueueHeightForQueueID) Error() string + type ErrNoValSetForHeight struct + Height int64 + func (e ErrNoValSetForHeight) Error() string + type ErrProxyAppConn error + type ErrStateMismatch struct + Expected *State + Got *State + func (e ErrStateMismatch) Error() string + type ErrUnknownBlock struct + Height int64 + func (e ErrUnknownBlock) Error() string + type SetTdmConfig struct + CreateEmptyBlocks bool + ForceGenerateBlock bool + Interval int + type State struct + ChainID string + ChainVersion int64 + ConsensusParams types.ConsensusParams + LastAllocation []abci.Allocation + LastAppHash []byte + LastBlockHeight int64 + LastBlockID types.BlockID + LastBlockTime time.Time + LastBlockTotalTx int64 + LastFee uint64 + LastHeightConsensusParamsChanged int64 + LastHeightValidatorsChanged int64 + LastMining *int64 + LastQueueChains *ibc.QueueChain + LastResultsHash []byte + LastTxsHashList [][]byte + LastValidators *types.ValidatorSet + Validators *types.ValidatorSet + func LoadLastState(db dbm.DB) State + func LoadState(db dbm.DB) State + func LoadStateFromDBOrGenesisDoc(stateDBx dbm.DB, stateDB dbm.DB, genesisDoc *types.GenesisDoc) (State, error) + func LoadStateFromDBOrGenesisFile(stateDBx dbm.DB, config *cfg.Config) (State, error) + func MakeGenesisState(genDoc *types.GenesisDoc) (State, error) + func MakeGenesisStateFromFile(config *cfg.Config) (State, error) + func (s State) Bytes() []byte + func (s State) Copy() State + func (s State) Equals(s2 State) bool + func (s State) GetValidators() (last *types.ValidatorSet, current *types.ValidatorSet) + func (s State) IsEmpty() bool + func (s State) MakeBlock(height int64, txs []types.Tx, commit *types.Commit, proposer crypto.Address, ...) (*types.Block, *types.PartSet) + type ValidatorsInfo struct + LastHeightChanged int64 + ValidatorSet *types.ValidatorSet + func (valInfo *ValidatorsInfo) Bytes() []byte