fixes from review

This commit is contained in:
Ethan Buchman
2017-09-04 18:27:04 -04:00
parent f0f1ebe013
commit 9deb647303
5 changed files with 46 additions and 58 deletions

View File

@ -231,9 +231,6 @@ func (s *State) ApplyBlock(eventCache types.Fireable, proxyAppConn proxy.AppConn
// now update the block and validators
s.SetBlockAndValidators(block.Header, partsHeader, abciResponses)
// save the validators for the next block now that we know them
s.SaveValidators()
// lock mempool, commit state, update mempoool
err = s.CommitStateUpdateMempool(proxyAppConn, block, mempool)
if err != nil {
@ -242,7 +239,7 @@ func (s *State) ApplyBlock(eventCache types.Fireable, proxyAppConn proxy.AppConn
fail.Fail() // XXX
// save the state
// save the state and the validators
s.Save()
return nil