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

View File

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