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

@ -143,6 +143,10 @@ func NewNode(config *cfg.Config, privValidator *types.PrivValidator, clientCreat
mempoolReactor := mempl.NewMempoolReactor(config.Mempool, mempool)
mempoolReactor.SetLogger(mempoolLogger)
if config.Consensus.NoEmptyBlocks {
mempool.FireOnTxsAvailable()
}
// Make ConsensusReactor
consensusState := consensus.NewConsensusState(config.Consensus, state.Copy(), proxyApp.Consensus(), blockStore, mempool)
consensusState.SetLogger(consensusLogger)