Browse Source

flush before commit

pull/206/merge
Ethan Buchman 9 years ago
committed by Jae Kwon
parent
commit
39344a601d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      consensus/state.go

+ 3
- 0
consensus/state.go 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() {


Loading…
Cancel
Save