diff options
| author | Jeff Garzik <[email protected]> | 2013-05-30 07:44:42 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-05-30 07:44:42 -0700 |
| commit | 1803fa1db995e61258f1542e1766aec5b104d87d (patch) | |
| tree | 94a295f22e1ba1ccfd6b984d89c3722d1719e482 /src/init.cpp | |
| parent | Merge pull request #2104 from al42and/listreceivedbyaddress_txids (diff) | |
| parent | Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable (diff) | |
| download | discoin-1803fa1db995e61258f1542e1766aec5b104d87d.tar.xz discoin-1803fa1db995e61258f1542e1766aec5b104d87d.zip | |
Merge pull request #2693 from jgarzik/checkpoint-bool
Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable set once at init time
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 767d7525a..2175f73d7 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -10,6 +10,7 @@ #include "init.h" #include "util.h" #include "ui_interface.h" +#include "checkpoints.h" #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> @@ -494,6 +495,7 @@ bool AppInit2(boost::thread_group& threadGroup) // ********************************************************* Step 2: parameter interactions fTestNet = GetBoolArg("-testnet"); + Checkpoints::fEnabled = GetBoolArg("-checkpoints", true); if (mapArgs.count("-bind")) { // when specifying an explicit binding address, you want to listen on it |