Browse Source

Merge #8693: add witness address to address book

62ffbbd add witness address to address book (instagibbs)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
fa7caf6d91
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/wallet/rpcwallet.cpp

2
src/wallet/rpcwallet.cpp

@ -1093,6 +1093,8 @@ UniValue addwitnessaddress(const UniValue& params, bool fHelp) @@ -1093,6 +1093,8 @@ UniValue addwitnessaddress(const UniValue& params, bool fHelp)
throw JSONRPCError(RPC_WALLET_ERROR, "Public key or redeemscript not known to wallet");
}
pwalletMain->SetAddressBook(w.result, "", "receive");
return CBitcoinAddress(w.result).ToString();
}

Loading…
Cancel
Save