Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidTxError ¶
func (InvalidTxError) Error ¶
func (txErr InvalidTxError) Error() string
type State ¶
type State struct { GenesisDoc *types.GenesisDoc ChainID string LastBlockHeight int // Genesis state has this set to 0. So, Block(H=0) does not exist. LastBlockHash []byte LastBlockParts types.PartSetHeader LastBlockTime time.Time Validators *types.ValidatorSet LastValidators *types.ValidatorSet AppHash []byte // contains filtered or unexported fields }
NOTE: not goroutine-safe.
func MakeGenesisState ¶
func MakeGenesisState(db dbm.DB, genDoc *types.GenesisDoc) *State
func (*State) ExecBlock ¶
func (s *State) ExecBlock(eventCache events.Fireable, proxyAppConn proxy.AppConnConsensus, block *types.Block, blockPartsHeader types.PartSetHeader) error
Execute the block to mutate State. Validates block and then executes Data.Txs in the block.
Click to show internal directories.
Click to hide internal directories.