save historical consensus params

This commit is contained in:
Ethan Buchman
2017-12-21 17:46:25 -05:00
parent 70a744558c
commit 35521b553a
5 changed files with 196 additions and 20 deletions

View File

@ -279,7 +279,10 @@ func (s *State) ApplyBlock(txEventPublisher types.TxEventPublisher, proxyAppConn
fail.Fail() // XXX
// now update the block and validators
s.SetBlockAndValidators(block.Header, partsHeader, abciResponses)
err = s.SetBlockAndValidators(block.Header, partsHeader, abciResponses)
if err != nil {
return fmt.Errorf("Commit failed for application: %v", err)
}
// lock mempool, commit state, update mempoool
err = s.CommitStateUpdateMempool(proxyAppConn, block, mempool)