From 2c54217f913967703b404747133be67cf2f4feac Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Wed, 15 Jan 2020 13:40:14 -0800 Subject: 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 --- 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 382d8d002b..1c630744be 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -79,6 +79,7 @@ struct PKHash : public uint160 explicit PKHash(const uint160& hash) : uint160(hash) {} explicit PKHash(const CPubKey& pubkey); }; +CKeyID ToKeyID(const PKHash& key_hash); struct WitnessV0KeyHash; struct ScriptHash : public uint160 -- cgit v1.2.3