aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2013-05-24 11:10:53 -0400
committerJeff Garzik <jgarzik@bitpay.com>2013-05-24 11:10:53 -0400
commitf0d8a52cc039cda77730047db2443fbec016f852 (patch)
tree9ee293b71d88c4b2b2e34ad49b5248b9bde9d97e /src/init.cpp
parent36dc41f4273c59e570978c603e48bbec43f3d0a1 (diff)
downloadbitcoin-f0d8a52cc039cda77730047db2443fbec016f852.tar.xz
Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable
set once at init time.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index ebd9dee7b2..6dafcc4af0 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>
@@ -493,6 +494,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