35 use_argnames ?
"-blockreservedweight" :
"block_reserved_weight",
40 use_argnames ?
"-blockreservedweight" :
"block_reserved_weight",
45 use_argnames ?
"-blockmaxweight" :
"block_max_weight",
50 use_argnames ?
"-blockreservedweight" :
"block_reserved_weight",
52 use_argnames ?
"-blockmaxweight" :
"block_max_weight",
57 "coinbase_output_max_additional_sigops",
66 if (
const auto arg{
args.
GetArg(
"-blockmintxfee")}) {
67 std::optional<CAmount> block_min_tx_fee{
ParseMoney(*arg)};
std::string GetArg(const std::string &strArg, const std::string &strDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return string argument or default value.
bool GetBoolArg(const std::string &strArg, bool fDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return boolean argument or default value.
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
constexpr int64_t MAX_BLOCK_SIGOPS_COST
The maximum allowed number of signature check operations in a block (network rule).
constexpr unsigned int MAX_BLOCK_WEIGHT
The maximum allowed weight for a block, see BIP 141 (network rule).
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
std::optional< CAmount > ParseMoney(const std::string &money_string)
Parse an amount denoted in full coins.
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
Result< BlockCreateOptions > ReadMiningArgs(const ArgsManager &args)
Read the mining options set in args.
BlockCreateOptions FlattenMiningOptions(BlockCreateOptions options)
Replace null optional values with their hardcoded defaults.
BlockCreateOptions MergeMiningOptions(BlockCreateOptions x, const BlockCreateOptions &y)
Merge two BlockCreateOptions structs, replacing null values in x with non-null values from y.
Result< void > CheckMiningOptions(BlockCreateOptions options, bool use_argnames)
Check option values for validity.
constexpr bool DEFAULT_PRINT_MODIFIED_FEE
bilingual_str ErrorString(const Result< T > &result)
constexpr unsigned int DEFAULT_BLOCK_MIN_TX_FEE
Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by min...
constexpr unsigned int DEFAULT_BLOCK_MAX_WEIGHT
Default for -blockmaxweight, which controls the range of block weights the mining code will create.
constexpr unsigned int DEFAULT_BLOCK_RESERVED_WEIGHT
Default for -blockreservedweight.
constexpr unsigned int MINIMUM_BLOCK_RESERVED_WEIGHT
This accounts for the block header, var_int encoding of the transaction count and a minimally viable ...
Block template creation options.
std::optional< bool > print_modified_fee
Whether to log the fee rate of each transaction when it is added to the block template.
std::optional< CFeeRate > block_min_fee_rate
Minimum fee rate for transactions to be included.
std::optional< uint64_t > block_max_weight
Maximum block weight, defaults to -maxblockweight.
size_t coinbase_output_max_additional_sigops
The maximum additional sigops which the pool will add in coinbase transaction outputs.
std::optional< uint64_t > block_reserved_weight
The default reserved weight for the fixed-size block header, transaction count and coinbase transacti...
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.