mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable
set once at init time.
This commit is contained in:
parent
36dc41f427
commit
f0d8a52cc0
3 changed files with 9 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue