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. 7
      neth/main.cpp

7
neth/main.cpp

@ -379,10 +379,11 @@ 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 {
mining = stoi(m);
}
catch (...) {
cerr << "Unknown -m/--mining option: " << m << endl; cerr << "Unknown -m/--mining option: " << m << endl;
return -1; return -1;
} }

Loading…
Cancel
Save