Browse Source

add witness address to address book

0.14
instagibbs 8 years ago
parent
commit
62ffbbdec3
  1. 2
      src/wallet/rpcwallet.cpp

2
src/wallet/rpcwallet.cpp

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

Loading…
Cancel
Save