diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-19 09:50:15 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-19 13:24:48 -0500 |
commit | fae3e2aab646a4813c6b9ad28b4c9cf4330c1a59 (patch) | |
tree | 5dcad7e4b5dc84b3c52a2230ce778f13f727151e /src/bitcoinrpc.cpp | |
parent | d7062ef1bd3319689d402027131f2c46efeddcb6 (diff) |
Disable addmultisigaddress if not testnet
Diffstat (limited to 'src/bitcoinrpc.cpp')
-rw-r--r-- | src/bitcoinrpc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 3e42e70387..47fd9830aa 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -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(); |