avoid network tests when --nonetwork is set

This commit is contained in:
CJentzsch 2015-06-18 12:31:58 +02:00
parent bfcfbf8ea7
commit ba65702982
2 changed files with 6 additions and 4 deletions

View File

@ -754,8 +754,10 @@ Options::Options()
checkState = true;
else if (arg == "--wallet")
wallet = true;
else if (arg == "--network")
network = true;
else if (arg == "--nonetwork")
nonetwork = true;
else if (arg == "--nodag")
nodag = true;
else if (arg == "--all")
{
performance = true;
@ -764,7 +766,6 @@ Options::Options()
inputLimits = true;
bigData = true;
wallet = true;
network = true;
}
else if (arg == "--singletest" && i + 1 < argc)
{

View File

@ -223,7 +223,8 @@ public:
bool inputLimits = false;
bool bigData = false;
bool wallet = false;
bool network = false;
bool nonetwork = false;
bool nodag = false;
/// @}
/// Get reference to options