diff options
| author | Jeff Garzik <[email protected]> | 2013-06-10 06:17:38 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-06-10 06:17:38 -0700 |
| commit | f59530ce6eb5a889e6eb750024ddb20e7b0df9d7 (patch) | |
| tree | e224b540dce7890cbf54f43215a05213bd5cb494 /src/init.cpp | |
| parent | Merge pull request #2749 from laanwj/2013_06_addtotalbalance (diff) | |
| parent | Removed the main.h include from net.cpp. (diff) | |
| download | discoin-f59530ce6eb5a889e6eb750024ddb20e7b0df9d7.tar.xz discoin-f59530ce6eb5a889e6eb750024ddb20e7b0df9d7.zip | |
Merge pull request #2154 from CodeShark/dependencycleanup
Clean up code dependencies
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index dcc43d836..f8b2b23fd 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -3,11 +3,13 @@ // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include "init.h" +#include "main.h" +#include "core.h" #include "txdb.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" -#include "init.h" #include "util.h" #include "ui_interface.h" #include "checkpoints.h" @@ -45,6 +47,7 @@ enum BindFlags { BF_REPORT_ERROR = (1U << 1) }; + ////////////////////////////////////////////////////////////////////////////// // // Shutdown @@ -99,6 +102,7 @@ void Shutdown() StopRPCThreads(); ShutdownRPCMining(); bitdb.Flush(false); + GenerateBitcoins(false, NULL); StopNode(); { LOCK(cs_main); @@ -567,6 +571,8 @@ bool AppInit2(boost::thread_group& threadGroup) // ********************************************************* Step 6: network initialization + RegisterNodeSignals(GetNodeSignals()); + int nSocksVersion = GetArg("-socks", 5); if (nSocksVersion != 4 && nSocksVersion != 5) return InitError(strprintf(_("Unknown -socks proxy version requested: %i"), nSocksVersion)); @@ -928,6 +934,7 @@ bool AppInit2(boost::thread_group& threadGroup) nStart = GetTimeMillis(); { + CAddrDB::SetMessageStart(pchMessageStart); CAddrDB adb; if (!adb.Read(addrman)) printf("Invalid or missing peers.dat; recreating\n"); |