diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2020-01-15 13:41:25 -0800 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2020-06-19 12:14:08 -0700 |
commit | f32c1e07fd6c174ff3f6406a619550d2f6c19360 (patch) | |
tree | 12c70ed12c60e6feea3e6228c15bf12a7c64a6df /src/wallet | |
parent | 2c54217f913967703b404747133be67cf2f4feac (diff) |
Use explicit conversion from WitnessV0KeyHash -> CKeyID
These types are equivalent, in data etc, so they need only their
data cast across.
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 43c1aa1a7d..fb79e06538 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3542,7 +3542,7 @@ public: { UniValue obj(UniValue::VOBJ); CPubKey pubkey; - if (provider && provider->GetPubKey(CKeyID(id), pubkey)) { + if (provider && provider->GetPubKey(ToKeyID(id), pubkey)) { obj.pushKV("pubkey", HexStr(pubkey)); } return obj; |