Skip to content

Commit

Permalink
Merge bitcoin#13815: Default to DEFAULT_BLOCK_MIN_TX_FEE if unable to…
Browse files Browse the repository at this point in the history
… parse arg

bitcoin@7c5bc2a
  • Loading branch information
kwvg committed Mar 10, 2021
1 parent c6f3970 commit bf3997c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static BlockAssembler::Options DefaultOptions(const CChainParams& params)
if (gArgs.IsArgSet("-blockmaxsize")) {
options.nBlockMaxSize = gArgs.GetArg("-blockmaxsize", DEFAULT_BLOCK_MAX_SIZE);
}
if (gArgs.IsArgSet("-blockmintxfee")) {
if (gArgs.IsArgSet("-blockmintxfee") && ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) {
CAmount n = 0;
ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n);
options.blockMinFeeRate = CFeeRate(n);
Expand Down

0 comments on commit bf3997c

Please sign in to comment.