Page MenuHomePhabricator

D7800.diff
No OneTemporary

D7800.diff

diff --git a/src/script/standard.h b/src/script/standard.h
--- a/src/script/standard.h
+++ b/src/script/standard.h
@@ -68,6 +68,10 @@
struct ScriptHash : public uint160 {
ScriptHash() : uint160() {}
+ // This doesn't do what you'd expect.
+ // Use ScriptHash(GetScriptForDestination(...)) instead.
+ explicit ScriptHash(const PKHash &hash) = delete;
+
explicit ScriptHash(const uint160 &hash) : uint160(hash) {}
explicit ScriptHash(const CScript &script);
using uint160::uint160;

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 11:06 (19 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5183689
Default Alt Text
D7800.diff (513 B)

Event Timeline