test: app persistence

This commit is contained in:
Ethan Buchman
2016-08-25 01:39:03 -04:00
parent d3ae920bd0
commit 138de19e1e
5 changed files with 77 additions and 2 deletions

View File

@ -246,6 +246,7 @@ func (s *State) ReplayBlocks(header *types.Header, partsHeader types.PartSetHead
// TODO: put validators in iavl tree so we can set the state with an older validator set
lastVals, nextVals := stateCopy.GetValidators()
stateCopy.SetBlockAndValidators(header, partsHeader, lastVals, nextVals)
stateCopy.AppHash = header.AppHash
}
// run the transactions