Skip to content

Commit

Permalink
miner: Default to DEFAULT_BLOCK_MIN_TX_FEE if unable to parse -blockm…
Browse files Browse the repository at this point in the history
…intxfee
  • Loading branch information
practicalswift committed Nov 5, 2018
1 parent 6b8d0a2 commit 7c5bc2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ static BlockAssembler::Options DefaultOptions()
// If -blockmaxweight is not given, limit to DEFAULT_BLOCK_MAX_WEIGHT
BlockAssembler::Options options;
options.nBlockMaxWeight = gArgs.GetArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT);
if (gArgs.IsArgSet("-blockmintxfee")) {
CAmount n = 0;
ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n);
CAmount n = 0;
if (gArgs.IsArgSet("-blockmintxfee") && ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) {
options.blockMinFeeRate = CFeeRate(n);
} else {
options.blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE);
Expand Down

0 comments on commit 7c5bc2a

Please sign in to comment.