Skip to content

Commit 62ffbbd

Browse files
committed
add witness address to address book
1 parent 5b2ea29 commit 62ffbbd

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
@@ -1087,6 +1087,8 @@ UniValue addwitnessaddress(const UniValue& params, bool fHelp)
10871087
throw JSONRPCError(RPC_WALLET_ERROR, "Public key or redeemscript not known to wallet");
10881088
}
10891089

1090+
pwalletMain->SetAddressBook(w.result, "", "receive");
1091+
10901092
return CBitcoinAddress(w.result).ToString();
10911093
}
10921094

0 commit comments

Comments
 (0)