Skip to content

Commit

Permalink
Merge bitcoin#8693: add witness address to address book
Browse files Browse the repository at this point in the history
62ffbbd add witness address to address book (instagibbs)
  • Loading branch information
laanwj committed Sep 13, 2016
2 parents c9914c2 + 62ffbbd commit fa7caf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit fa7caf6

Please sign in to comment.