mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
NoEmptyBlocks config option
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user