Mercurial > hg > bitcoin
changeset 1602:e8605bf88eee draft
Disable addmultisigaddress if not testnet
author | Gavin Andresen <gavinandresen@gmail.com> |
---|---|
date | Wed, 19 Oct 2011 09:50:15 -0400 |
parents | 57ebfef5b435 |
children | 8e0461c3f948 |
files | src/bitcoinrpc.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -946,6 +946,8 @@ "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();