Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115441
D7800.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
513 B
Subscribers
None
D7800.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 11:06 (16 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5183689
Default Alt Text
D7800.diff (513 B)
Attached To
D7800: [backport#17924] Bug: IsUsedDestination shouldn't use key id as script id for ScriptHash
Event Timeline
Log In to Comment