mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-07 08:50:26 +02:00
add witness address to address book
This commit is contained in:
@ -1087,6 +1087,8 @@ UniValue addwitnessaddress(const UniValue& params, bool fHelp)
|
|||||||
throw JSONRPCError(RPC_WALLET_ERROR, "Public key or redeemscript not known to wallet");
|
throw JSONRPCError(RPC_WALLET_ERROR, "Public key or redeemscript not known to wallet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pwalletMain->SetAddressBook(w.result, "", "receive");
|
||||||
|
|
||||||
return CBitcoinAddress(w.result).ToString();
|
return CBitcoinAddress(w.result).ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user