git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d7062ef
)
Disable addmultisigaddress if not testnet
author
Gavin Andresen
<gavinandresen@gmail.com>
Wed, 19 Oct 2011 13:50:15 +0000 (09:50 -0400)
committer
Gavin Andresen
<gavinandresen@gmail.com>
Mon, 19 Dec 2011 18:24:48 +0000 (13:24 -0500)
src/bitcoinrpc.cpp
patch
|
blob
|
history
diff --git
a/src/bitcoinrpc.cpp
b/src/bitcoinrpc.cpp
index
3e42e70
..
47fd983
100644
(file)
--- 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();