| 65 | } |
| 66 | |
| 67 | static BlockAssembler::Options DefaultOptions() |
| 68 | { |
| 69 | // Block resource limits |
| 70 | // If -blockmaxweight is not given, limit to DEFAULT_BLOCK_MAX_WEIGHT |
| 71 | BlockAssembler::Options options; |
| 72 | options.nBlockMaxWeight = gArgs.GetArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT); |
| 73 | if (gArgs.IsArgSet("-blockmintxfee")) { |
| 74 | CAmount n = 0; |
| 75 | ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n); |
| 76 | options.blockMinFeeRate = CFeeRate(n); |
| 77 | } else { |
| 78 | options.blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE); |
| 79 | } |
| 80 | return options; |
| 81 | } |
| 82 | |
| 83 | BlockAssembler::BlockAssembler(const CChainParams& params) : BlockAssembler(params, DefaultOptions()) {} |
| 84 |
no test coverage detected