From bf576f0097b45d096f29b8de5f56e555993f11a9 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 12 Sep 2017 14:37:32 -0400 Subject: [PATCH] state: minor comment fixes --- state/state.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/state/state.go b/state/state.go index a9a2fee8..7e22e04d 100644 --- a/state/state.go +++ b/state/state.go @@ -42,14 +42,15 @@ type State struct { GenesisDoc *types.GenesisDoc ChainID string - // Updated at end of SetBlockAndValidators - // Genesis state has this set to 0. So, Block(H=0) does not exist + // These fields are updated by SetBlockAndValidators. + // LastBlockHeight=0 at genesis (ie. block(H=0) does not exist) + // LastValidators is used to validate block.LastCommit. LastBlockHeight int LastBlockID types.BlockID LastBlockTime time.Time Validators *types.ValidatorSet - // block.LastCommit validated against LastValidators - LastValidators *types.ValidatorSet + LastValidators *types.ValidatorSet + // AppHash is updated after Commit AppHash []byte