mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-03-12 05:31:14 +00:00
add witness address to address book
Github-Pull: #8693 Rebased-From: 62ffbbdec30699941069baeae61716ff12155ba6
This commit is contained in:
parent
8d9e8adc05
commit
c6a629100b
@ -1088,6 +1088,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…
x
Reference in New Issue
Block a user