flush before commit

This commit is contained in:
Ethan Buchman 2016-04-12 13:56:38 -04:00 committed by Jae Kwon
parent 5296507665
commit 39344a601d
1 changed files with 3 additions and 0 deletions

View File

@ -1258,6 +1258,9 @@ func (cs *ConsensusState) commitStateUpdateMempool(s *sm.State, block *types.Blo
cs.mempool.Lock()
defer cs.mempool.Unlock()
// flush out any CheckTx that have already started
cs.proxyAppConn.FlushSync()
// Commit block, get hash back
res := cs.proxyAppConn.CommitSync()
if res.IsErr() {