mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 23:02:16 +00:00
state: minor comment fixes
This commit is contained in:
parent
870a98ccc3
commit
bf576f0097
@ -42,14 +42,15 @@ type State struct {
|
|||||||
GenesisDoc *types.GenesisDoc
|
GenesisDoc *types.GenesisDoc
|
||||||
ChainID string
|
ChainID string
|
||||||
|
|
||||||
// Updated at end of SetBlockAndValidators
|
// These fields are updated by SetBlockAndValidators.
|
||||||
// Genesis state has this set to 0. So, Block(H=0) does not exist
|
// LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
|
||||||
|
// LastValidators is used to validate block.LastCommit.
|
||||||
LastBlockHeight int
|
LastBlockHeight int
|
||||||
LastBlockID types.BlockID
|
LastBlockID types.BlockID
|
||||||
LastBlockTime time.Time
|
LastBlockTime time.Time
|
||||||
Validators *types.ValidatorSet
|
Validators *types.ValidatorSet
|
||||||
// block.LastCommit validated against LastValidators
|
LastValidators *types.ValidatorSet
|
||||||
LastValidators *types.ValidatorSet
|
|
||||||
// AppHash is updated after Commit
|
// AppHash is updated after Commit
|
||||||
AppHash []byte
|
AppHash []byte
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user