diff options
| author | Ben Woosley <[email protected]> | 2020-01-15 13:40:14 -0800 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2020-06-19 12:14:07 -0700 |
| commit | 2c54217f913967703b404747133be67cf2f4feac (patch) | |
| tree | 5e0e846cd14a58414943f5f8a91ff055bbd0ee63 /src/script/signingprovider.cpp | |
| parent | Convert CPubKey to WitnessV0KeyHash directly (diff) | |
| download | discoin-2c54217f913967703b404747133be67cf2f4feac.tar.xz discoin-2c54217f913967703b404747133be67cf2f4feac.zip | |
Use explicit conversion from PKHash -> CKeyID
These types are equivalent, in data etc, so they need only their
data cast across.
Note a function is used rather than a casting
operator as CKeyID is defined at a lower level than script/standard
Diffstat (limited to 'src/script/signingprovider.cpp')
| -rw-r--r-- | src/script/signingprovider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/signingprovider.cpp b/src/script/signingprovider.cpp index 01757e2f6..a4eb0a839 100644 --- a/src/script/signingprovider.cpp +++ b/src/script/signingprovider.cpp @@ -180,7 +180,7 @@ CKeyID GetKeyForDestination(const SigningProvider& store, const CTxDestination& // Only supports destinations which map to single public keys, i.e. P2PKH, // P2WPKH, and P2SH-P2WPKH. if (auto id = boost::get<PKHash>(&dest)) { - return CKeyID(*id); + return ToKeyID(*id); } if (auto witness_id = boost::get<WitnessV0KeyHash>(&dest)) { return CKeyID(*witness_id); |