Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13711185
D1030.id2730.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D1030.id2730.diff
View Options
diff --git a/src/script/script.h b/src/script/script.h
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -596,7 +596,6 @@
unsigned int GetSigOpCount(const CScript &scriptSig) const;
bool IsPayToScriptHash() const;
- bool IsPayToWitnessScriptHash() const;
bool IsCommitment(const std::vector<uint8_t> &data) const;
bool IsWitnessProgram(int &version, std::vector<uint8_t> &program) const;
diff --git a/src/script/script.cpp b/src/script/script.cpp
--- a/src/script/script.cpp
+++ b/src/script/script.cpp
@@ -308,11 +308,6 @@
(*this)[1] == 0x14 && (*this)[22] == OP_EQUAL);
}
-bool CScript::IsPayToWitnessScriptHash() const {
- // Extra-fast test for pay-to-witness-script-hash CScripts:
- return (this->size() == 34 && (*this)[0] == OP_0 && (*this)[1] == 0x20);
-}
-
bool CScript::IsCommitment(const std::vector<uint8_t> &data) const {
// To ensure we have an immediate push, we limit the commitment size to 64
// bytes. In addition to the data themselves, we have 2 extra bytes:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 10:44 (10 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5573326
Default Alt Text
D1030.id2730.diff (1 KB)
Attached To
D1030: Remove IsPayToWitnessScriptHash
Event Timeline
Log In to Comment