aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-12-01 10:00:04 +0100
committerWladimir J. van der Laan <[email protected]>2015-12-01 10:22:14 +0100
commit327291af02d05e09188713d882bf68ac708c1077 (patch)
treefd6e45cfb3d11beb185c3d1da556a075c924b165 /src/script/script.cpp
parentMerge pull request #7096 (diff)
parentPrevector type (diff)
downloaddiscoin-327291af02d05e09188713d882bf68ac708c1077.tar.xz
discoin-327291af02d05e09188713d882bf68ac708c1077.zip
Merge pull request #6914
114b581 Prevector type (Pieter Wuille)
Diffstat (limited to 'src/script/script.cpp')
-rw-r--r--src/script/script.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp
index 263c89def..9c77ed9fc 100644
--- a/src/script/script.cpp
+++ b/src/script/script.cpp
@@ -205,9 +205,9 @@ bool CScript::IsPayToScriptHash() const
{
// Extra-fast test for pay-to-script-hash CScripts:
return (this->size() == 23 &&
- this->at(0) == OP_HASH160 &&
- this->at(1) == 0x14 &&
- this->at(22) == OP_EQUAL);
+ (*this)[0] == OP_HASH160 &&
+ (*this)[1] == 0x14 &&
+ (*this)[22] == OP_EQUAL);
}
bool CScript::IsPushOnly(const_iterator pc) const