Browse Source

Merge #8693: add witness address to address book

62ffbbd add witness address to address book (instagibbs)
tags/v0.15.1
Wladimir J. van der Laan 4 years ago
parent
commit
fa7caf6d91
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/wallet/rpcwallet.cpp

+ 2
- 0
src/wallet/rpcwallet.cpp View File

@@ -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