| 31 | |
| 32 | namespace { |
| 33 | void ApplyArgsManOptions(const ArgsManager& argsman, MemPoolLimits& mempool_limits) |
| 34 | { |
| 35 | mempool_limits.cluster_count = argsman.GetIntArg("-limitclustercount", mempool_limits.cluster_count); |
| 36 | |
| 37 | if (auto vkb = argsman.GetIntArg("-limitclustersize")) mempool_limits.cluster_size_vbytes = *vkb * 1'000; |
| 38 | |
| 39 | mempool_limits.ancestor_count = argsman.GetIntArg("-limitancestorcount", mempool_limits.ancestor_count); |
| 40 | |
| 41 | mempool_limits.descendant_count = argsman.GetIntArg("-limitdescendantcount", mempool_limits.descendant_count); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | util::Result<void> ApplyArgsManOptions(const ArgsManager& argsman, const CChainParams& chainparams, MemPoolOptions& mempool_opts) |