Browse Source

Disable addmultisigaddress if not testnet

0.8
Gavin Andresen 13 years ago
parent
commit
fae3e2aab6
  1. 2
      src/bitcoinrpc.cpp

2
src/bitcoinrpc.cpp

@ -946,6 +946,8 @@ Value addmultisigaddress(const Array& params, bool fHelp) @@ -946,6 +946,8 @@ Value addmultisigaddress(const Array& params, bool fHelp)
"If [account] is specified, assign address to [account].";
throw runtime_error(msg);
}
if (!fTestNet)
throw runtime_error("addmultisigaddress available only when running -testnet\n");
int nRequired = params[0].get_int();
const Array& keys = params[1].get_array();

Loading…
Cancel
Save