#14682
Adds a check in the getaddressinfo RPC.
rpc: GetKeyOrigin check in getaddressinfo RPC #14977
pull benthecarman wants to merge 1 commits into bitcoin:master from benthecarman:getaddressinfo_rpc_refactor_GetKeyOrigin changing 1 files +2 −1-
benthecarman commented at 9:47 PM on December 16, 2018: contributor
-
GetKeyOrigin check in getaddressinfo rpc fb94bc9415
- fanquake added the label Wallet on Dec 16, 2018
- fanquake added the label RPC/REST/ZMQ on Dec 16, 2018
- fanquake requested review from Sjors on Dec 17, 2018
-
in src/wallet/rpcwallet.cpp:3672 in fb94bc9415
3667 | @@ -3668,7 +3668,8 @@ UniValue getaddressinfo(const JSONRPCRequest& request) 3668 | } 3669 | if (meta) { 3670 | ret.pushKV("timestamp", meta->nCreateTime); 3671 | - if (!meta->hdKeypath.empty()) { 3672 | + KeyOriginInfo info; 3673 | + if (!meta->hdKeypath.empty() && pwallet->GetKeyOrigin(key_id, info)) {
promag commented at 2:46 PM on December 17, 2018:Would be nice to have a test that fails without this change.
benthecarman commented at 5:08 PM on December 17, 2018:That may be a better idea and just close this PR
benthecarman renamed this:GetKeyOrigin check in getaddressinfo RPC
rpc: GetKeyOrigin check in getaddressinfo RPC
on Dec 18, 2018benthecarman closed this on Dec 18, 2018benthecarman deleted the branch on Dec 29, 2018MarcoFalke locked this on Sep 8, 2021ContributorsLabels
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me