[config] remove MaxBlockSizeTxs and MaxBlockSizeBytes in favor of consensus params

This commit is contained in:
Anton Kaliaev
2018-06-27 14:14:48 +04:00
parent 2a7602c4ed
commit f760c24ff0
4 changed files with 1 additions and 15 deletions

View File

@ -932,7 +932,7 @@ func (cs *ConsensusState) createProposalBlock() (block *types.Block, blockParts
}
// Mempool validated transactions
txs := cs.mempool.Reap(cs.config.MaxBlockSizeTxs)
txs := cs.mempool.Reap(cs.state.ConsensusParams.BlockSize.MaxTxs)
block, parts := cs.state.MakeBlock(cs.Height, txs, commit)
evidence := cs.evpool.PendingEvidence()
block.AddEvidence(evidence)