| 76 | } |
| 77 | |
| 78 | BlockAssembler::BlockAssembler(CChainState& chainstate, const CTxMemPool& mempool, const CChainParams& params, const Options& options) |
| 79 | : chainparams(params), |
| 80 | m_mempool(mempool), |
| 81 | m_chainstate(chainstate) |
| 82 | { |
| 83 | blockMinFeeRate = options.blockMinFeeRate; |
| 84 | // Limit weight to between 4K and MAX_BLOCK_WEIGHT-4K for sanity: |
| 85 | nBlockMaxWeight = std::max<size_t>(4000, std::min<size_t>(MAX_BLOCK_WEIGHT - 4000, options.nBlockMaxWeight)); |
| 86 | } |
| 87 | |
| 88 | static BlockAssembler::Options DefaultOptions() |
| 89 | { |
nothing calls this directly
no test coverage detected