We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b8d0a2 commit 7c5bc2aCopy full SHA for 7c5bc2a
src/miner.cpp
@@ -70,9 +70,8 @@ static BlockAssembler::Options DefaultOptions()
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);
+ CAmount n = 0;
+ if (gArgs.IsArgSet("-blockmintxfee") && ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) {
76
options.blockMinFeeRate = CFeeRate(n);
77
} else {
78
options.blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE);
0 commit comments