Add ResultHash to header

This commit is contained in:
Ethan Frey
2017-12-22 16:43:45 +01:00
committed by Ethan Buchman
parent 632cc918b4
commit 58c5df729b
12 changed files with 44 additions and 21 deletions

View File

@@ -79,8 +79,9 @@ type State struct {
LastHeightConsensusParamsChanged int64
// Store LastABCIResults along with hash
LastResults ABCIResults // TODO: remove??
LastResultHash []byte
LastResults ABCIResults // TODO: remove??
LastResultHash []byte // this is the one for the next block to propose
LastLastResultHash []byte // this verifies the last block?
// The latest AppHash we've received from calling abci.Commit()
AppHash []byte
@@ -156,6 +157,9 @@ func (s *State) Copy() *State {
AppHash: s.AppHash,
LastResults: s.LastResults,
LastResultHash: s.LastResultHash,
logger: s.logger,
}
}