diff options
| author | Jeff Garzik <[email protected]> | 2013-03-31 01:54:27 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-03-31 01:54:27 -0400 |
| commit | a0cafb7945cb81616586fa82a1419d826f9a2c6e (patch) | |
| tree | faac7c7968daac89d4efe8fc94bb8dea544b4e1b /src/init.cpp | |
| parent | Merge pull request #2386 from Diapolo/Mac_GUI (diff) | |
| download | discoin-a0cafb7945cb81616586fa82a1419d826f9a2c6e.tar.xz discoin-a0cafb7945cb81616586fa82a1419d826f9a2c6e.zip | |
Move GenerateBitcoins() call out of net.cpp's StartNode()
The internal miner is closely bound to the wallet engine,
not the blockchain engine.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 1bf76631d..c29145e38 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1027,6 +1027,9 @@ bool AppInit2() if (fServer) NewThread(ThreadRPCServer, NULL); + // Generate coins in the background + GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain); + // ********************************************************* Step 12: finished uiInterface.InitMessage(_("Done loading")); |