test: app persistence

This commit is contained in:
Ethan Buchman
2016-11-16 13:25:13 -05:00
parent d3ae920bd0
commit 138de19e1e
5 changed files with 77 additions and 2 deletions
+1
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