From 39344a601dcceebf687d295fde66faaf56e7bba2 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 12 Apr 2016 13:56:38 -0400 Subject: [PATCH] flush before commit --- consensus/state.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consensus/state.go b/consensus/state.go index 40d77be2a..6ed6a521f 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -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() {