diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2010-12-08 20:06:44 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2010-12-08 20:06:44 -0500 |
commit | d12e53ea090ba49a82ff4f79782af809d21cf280 (patch) | |
tree | 8fb80d4335255d62eb65e9f7b2def7ca799b55c4 /script.h | |
parent | 0a87c91692765abb6d49969b968389133e846768 (diff) | |
parent | 82201801336f64ee77851b9eaab9383ee4e442f0 (diff) | |
download | bitcoin-d12e53ea090ba49a82ff4f79782af809d21cf280.tar.xz |
Merge remote branch 'refs/remotes/svn/trunk' into svn
Diffstat (limited to 'script.h')
-rw-r--r-- | script.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -597,6 +597,23 @@ public: } + bool IsPushOnly() const + { + if (size() > 200) + return false; + const_iterator pc = begin(); + while (pc < end()) + { + opcodetype opcode; + if (!GetOp(pc, opcode)) + return false; + if (opcode > OP_16) + return false; + } + return true; + } + + uint160 GetBitcoinAddressHash160() const { opcodetype opcode; @@ -684,6 +701,7 @@ public: uint256 SignatureHash(CScript scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType); +bool IsStandard(const CScript& scriptPubKey); bool IsMine(const CScript& scriptPubKey); bool ExtractPubKey(const CScript& scriptPubKey, bool fMineOnly, vector<unsigned char>& vchPubKeyRet); bool ExtractHash160(const CScript& scriptPubKey, uint160& hash160Ret); |