Skip to content

Commit

Permalink
Fix GenerateGcoins
Browse files Browse the repository at this point in the history
Intialize the -gen argument with SoftSetBoolArg
  • Loading branch information
hihiben committed Jun 19, 2017
1 parent 6a62901 commit e02e979
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@ void GenerateGcoins(bool fGenerate, CWallet* pwallet, int nThreads)
minerThreads = NULL;
}

SoftSetBoolArg("-gen", fGenerate);

if (nThreads == 0 || !fGenerate)
return;

Expand Down

0 comments on commit e02e979

Please sign in to comment.