lock mempool for commit and update. closes #202

This commit is contained in:
Ethan Buchman
2016-04-11 17:19:56 -04:00
committed by Jae Kwon
parent 09fe44a6b3
commit 8e5e5c689f
3 changed files with 45 additions and 28 deletions

View File

@ -94,20 +94,7 @@ func (s *State) execBlockOnProxyApp(evsw *events.EventSwitch, proxyAppConn proxy
// TODO: Do something with changedValidators
log.Info("TODO: Do something with changedValidators", changedValidators)
// Commit block, get hash back
res := proxyAppConn.CommitSync()
if res.IsErr() {
log.Warn("Error in proxyAppConn.CommitSync", "error", res)
return res
}
if res.Log != "" {
log.Debug("Commit.Log: " + res.Log)
}
log.Info(Fmt("ExecBlock got %v valid txs and %v invalid txs", validTxs, invalidTxs))
// Set the state's new AppHash
s.AppHash = res.Data
return nil
}