Skip to content

Commit 7c5bc2a

Browse files
miner: Default to DEFAULT_BLOCK_MIN_TX_FEE if unable to parse -blockmintxfee
1 parent 6b8d0a2 commit 7c5bc2a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/miner.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ static BlockAssembler::Options DefaultOptions()
7070
// If -blockmaxweight is not given, limit to DEFAULT_BLOCK_MAX_WEIGHT
7171
BlockAssembler::Options options;
7272
options.nBlockMaxWeight = gArgs.GetArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT);
73-
if (gArgs.IsArgSet("-blockmintxfee")) {
74-
CAmount n = 0;
75-
ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n);
73+
CAmount n = 0;
74+
if (gArgs.IsArgSet("-blockmintxfee") && ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) {
7675
options.blockMinFeeRate = CFeeRate(n);
7776
} else {
7877
options.blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE);

0 commit comments

Comments
 (0)