[RPC] Remove deprecated addmultisigaddress return format
This commit is contained in:
parent
cb28a0b07f
commit
db1cbcc856
1 changed files with 0 additions and 9 deletions
|
@ -1192,10 +1192,6 @@ UniValue addmultisigaddress(const JSONRPCRequest& request)
|
||||||
" \"address\":\"multisigaddress\", (string) The value of the new multisig address.\n"
|
" \"address\":\"multisigaddress\", (string) The value of the new multisig address.\n"
|
||||||
" \"redeemScript\":\"script\" (string) The string value of the hex-encoded redemption script.\n"
|
" \"redeemScript\":\"script\" (string) The string value of the hex-encoded redemption script.\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"\nResult (DEPRECATED. To see this result in v0.16 instead, please start bitcoind with -deprecatedrpc=addmultisigaddress).\n"
|
|
||||||
" clients should transition to the new output api before upgrading to v0.17.\n"
|
|
||||||
"\"address\" (string) A bitcoin address associated with the keys.\n"
|
|
||||||
|
|
||||||
"\nExamples:\n"
|
"\nExamples:\n"
|
||||||
"\nAdd a multisig address from 2 addresses\n"
|
"\nAdd a multisig address from 2 addresses\n"
|
||||||
+ HelpExampleCli("addmultisigaddress", "2 \"[\\\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\\\",\\\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\\\"]\"") +
|
+ HelpExampleCli("addmultisigaddress", "2 \"[\\\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\\\",\\\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\\\"]\"") +
|
||||||
|
@ -1238,11 +1234,6 @@ UniValue addmultisigaddress(const JSONRPCRequest& request)
|
||||||
CTxDestination dest = pwallet->AddAndGetDestinationForScript(inner, output_type);
|
CTxDestination dest = pwallet->AddAndGetDestinationForScript(inner, output_type);
|
||||||
pwallet->SetAddressBook(dest, strAccount, "send");
|
pwallet->SetAddressBook(dest, strAccount, "send");
|
||||||
|
|
||||||
// Return old style interface
|
|
||||||
if (IsDeprecatedRPCEnabled("addmultisigaddress")) {
|
|
||||||
return EncodeDestination(dest);
|
|
||||||
}
|
|
||||||
|
|
||||||
UniValue result(UniValue::VOBJ);
|
UniValue result(UniValue::VOBJ);
|
||||||
result.pushKV("address", EncodeDestination(dest));
|
result.pushKV("address", EncodeDestination(dest));
|
||||||
result.pushKV("redeemScript", HexStr(inner.begin(), inner.end()));
|
result.pushKV("redeemScript", HexStr(inner.begin(), inner.end()));
|
||||||
|
|
Loading…
Reference in a new issue