From f0d8a52cc039cda77730047db2443fbec016f852 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Fri, 24 May 2013 11:10:53 -0400 Subject: Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable set once at init time. --- src/init.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index ebd9dee7b..6dafcc4af 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 #include @@ -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 -- cgit v1.2.3