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/script/standard.h | |
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/script/standard.h')
-rw-r--r-- | src/script/standard.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/standard.h b/src/script/standard.h index 1c630744be..6c882e92a1 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -106,6 +106,7 @@ struct WitnessV0KeyHash : public uint160 explicit WitnessV0KeyHash(const uint160& hash) : uint160(hash) {} explicit WitnessV0KeyHash(const CPubKey& pubkey); }; +CKeyID ToKeyID(const WitnessV0KeyHash& key_hash); //! CTxDestination subtype to encode any future Witness version struct WitnessUnknown |