Browse Source

Don't accept default argument for eth. Fixes #1250.

Remove pointless exception.
Reduce JS verbosity.
cl-refactor
Gav Wood 10 years ago
parent
commit
bc345316dc
  1. 7
      eth/main.cpp
  2. 1
      libethcore/Exceptions.h
  3. 1
      libjsqrc/ethereumjs/dist/ethereum.js
  4. 4
      libjsqrc/ethereumjs/dist/ethereum.js.map
  5. 2
      libjsqrc/ethereumjs/dist/ethereum.min.js

7
eth/main.cpp

@ -103,7 +103,7 @@ void interactiveHelp()
void help()
{
cout
<< "Usage eth [OPTIONS] <remote-host>" << endl
<< "Usage eth [OPTIONS]" << endl
<< "Options:" << endl
<< " -a,--address <addr> Set the coinbase (mining payout) address to addr (default: auto)." << endl
<< " -b,--bootstrap Connect to the default Ethereum peerserver." << endl
@ -407,7 +407,10 @@ int main(int argc, char** argv)
else if (arg == "-V" || arg == "--version")
version();
else
remoteHost = argv[i];
{
cerr << "Invalid argument: " << arg << endl;
exit(-1);
}
}
if (!clientName.empty())

1
libethcore/Exceptions.h

@ -59,7 +59,6 @@ struct InvalidGasUsed: virtual dev::Exception {};
class InvalidTransactionsHash: virtual public dev::Exception {};
struct InvalidTransaction: virtual dev::Exception {};
struct InvalidDifficulty: virtual dev::Exception {};
struct InvalidSeedHash: virtual dev::Exception {};
class InvalidGasLimit: virtual public dev::Exception {};
struct InvalidTransactionGasUsed: virtual dev::Exception {};
struct InvalidTransactionsStateRoot: virtual dev::Exception {};

1
libjsqrc/ethereumjs/dist/ethereum.js

@ -2048,7 +2048,6 @@ var filter = function(options, implementation, formatter) {
// call the callbacks
var onMessages = function (messages) {
messages.forEach(function (message) {
console.log("Got message: " + JSON.stringify(message));
message = formatter ? formatter(message) : message;
callbacks.forEach(function (callback) {
callback(message);

4
libjsqrc/ethereumjs/dist/ethereum.js.map

File diff suppressed because one or more lines are too long

2
libjsqrc/ethereumjs/dist/ethereum.min.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save