mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 18:51:15 +02:00
miner: Default to DEFAULT_BLOCK_MIN_TX_FEE if unable to parse -blockmintxfee
This commit is contained in:
@ -70,9 +70,8 @@ static BlockAssembler::Options DefaultOptions()
|
|||||||
// If -blockmaxweight is not given, limit to DEFAULT_BLOCK_MAX_WEIGHT
|
// If -blockmaxweight is not given, limit to DEFAULT_BLOCK_MAX_WEIGHT
|
||||||
BlockAssembler::Options options;
|
BlockAssembler::Options options;
|
||||||
options.nBlockMaxWeight = gArgs.GetArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT);
|
options.nBlockMaxWeight = gArgs.GetArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT);
|
||||||
if (gArgs.IsArgSet("-blockmintxfee")) {
|
|
||||||
CAmount n = 0;
|
CAmount n = 0;
|
||||||
ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n);
|
if (gArgs.IsArgSet("-blockmintxfee") && ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) {
|
||||||
options.blockMinFeeRate = CFeeRate(n);
|
options.blockMinFeeRate = CFeeRate(n);
|
||||||
} else {
|
} else {
|
||||||
options.blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE);
|
options.blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE);
|
||||||
|
Reference in New Issue
Block a user