NoEmptyBlocks config option

This commit is contained in:
Ethan Buchman
2017-07-13 13:19:44 -04:00
parent 4beac54bd9
commit 124032e3e9
4 changed files with 36 additions and 5 deletions

View File

@ -780,7 +780,11 @@ func (cs *ConsensusState) enterNewRound(height int, round int) {
// Wait for txs to be available in the mempool
// before we enterPropose
go cs.waitForTxs(height, round)
if cs.config.NoEmptyBlocks {
go cs.waitForTxs(height, round)
} else {
cs.enterPropose(height, round)
}
}
func (cs *ConsensusState) waitForTxs(height, round int) {