mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Disable addmultisigaddress if not testnet
This commit is contained in:
parent
d7062ef1bd
commit
fae3e2aab6
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue