From f32c1e07fd6c174ff3f6406a619550d2f6c19360 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Wed, 15 Jan 2020 13:41:25 -0800 Subject: Use explicit conversion from WitnessV0KeyHash -> CKeyID These types are equivalent, in data etc, so they need only their data cast across. --- src/script/standard.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/script/standard.h') 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 -- cgit v1.2.3