We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b8f1e9 commit 6dd59d2Copy full SHA for 6dd59d2
src/script/standard.h
@@ -80,9 +80,14 @@ struct PKHash : public uint160
80
using uint160::uint160;
81
};
82
83
+struct WitnessV0KeyHash;
84
struct ScriptHash : public uint160
85
{
86
ScriptHash() : uint160() {}
87
+ // These don't do what you'd expect.
88
+ // Use ScriptHash(GetScriptForDestination(...)) instead.
89
+ explicit ScriptHash(const WitnessV0KeyHash& hash) = delete;
90
+ explicit ScriptHash(const PKHash& hash) = delete;
91
explicit ScriptHash(const uint160& hash) : uint160(hash) {}
92
explicit ScriptHash(const CScript& script);
93
0 commit comments