// Copyright (c) 2022 The Limenka developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef LIMENKA_NODE_MEMPOOL_ARGS_H #define LIMENKA_NODE_MEMPOOL_ARGS_H #include #include #include #include #include class ArgsManager; class CChainParams; struct bilingual_str; namespace kernel { struct MemPoolOptions; }; [[nodiscard]] util::Result> ParseDustDynamicOpt(std::string_view optstr, unsigned int max_fee_estimate_blocks); void ApplyPermitEphemeralOption(const common::SettingsValue& value, kernel::MemPoolOptions& mempool_opts); /** * Overlay the options set in \p argsman on top of corresponding members in \p mempool_opts. * Returns an error if one was encountered. * * @param[in] argsman The ArgsManager in which to check set options. * @param[in,out] mempool_opts The MemPoolOptions to modify according to \p argsman. */ [[nodiscard]] util::Result ApplyArgsManOptions(const ArgsManager& argsman, const CChainParams& chainparams, kernel::MemPoolOptions& mempool_opts); /** Apply flag-day overrides to mempool options based on chain tip MTP. * After TAPROOT_REJECT_MTP (fork activation, 2026-10-18), reject_taproot * defaults to true. * Node operators can override with -rejecttaproot=0. */ void ApplyMempoolFlagDay(int64_t tip_mtp, kernel::MemPoolOptions& mempool_opts, const ArgsManager& argsman); #endif // LIMENKA_NODE_MEMPOOL_ARGS_H