Skip to content

Commit fa7caf6

Browse files
committed
Merge #8693: add witness address to address book
62ffbbd add witness address to address book (instagibbs)
2 parents c9914c2 + 62ffbbd commit fa7caf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,8 @@ UniValue addwitnessaddress(const UniValue& params, bool fHelp)
10931093
throw JSONRPCError(RPC_WALLET_ERROR, "Public key or redeemscript not known to wallet");
10941094
}
10951095

1096+
pwalletMain->SetAddressBook(w.result, "", "receive");
1097+
10961098
return CBitcoinAddress(w.result).ToString();
10971099
}
10981100

0 commit comments

Comments
 (0)