Browse Source

Merge pull request #800 from caktux/develop

apply fix for #597 to neth
cl-refactor
Gav Wood 10 years ago
parent
commit
8b118fbe47
  1. 13
      neth/main.cpp

13
neth/main.cpp

@ -379,13 +379,14 @@ int main(int argc, char** argv)
mining = ~(unsigned)0; mining = ~(unsigned)0;
else if (isFalse(m)) else if (isFalse(m))
mining = 0; mining = 0;
else if (int i = stoi(m))
mining = i;
else else
{ try {
cerr << "Unknown -m/--mining option: " << m << endl; mining = stoi(m);
return -1; }
} catch (...) {
cerr << "Unknown -m/--mining option: " << m << endl;
return -1;
}
} }
else if (arg == "-b" || arg == "--bootstrap") else if (arg == "-b" || arg == "--bootstrap")
bootstrap = true; bootstrap = true;

Loading…
Cancel
Save