Skip to content

Commit

Permalink
Merge pull request #2738 from bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzyBearBTC committed Jan 25, 2014
1 parent f947c6d commit b4f6aa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/script.h
Expand Up @@ -36,6 +36,7 @@ enum txnouttype
TX_PUBKEYHASH,
TX_SCRIPTHASH,
TX_MULTISIG,
TX_NULL_DATA,
};

const char* GetTxnOutputType(txnouttype t);
Expand Down Expand Up @@ -178,6 +179,7 @@ enum opcodetype


// template matching params
OP_SMALLDATA = 0xf9,
OP_SMALLINTEGER = 0xfa,
OP_PUBKEYS = 0xfb,
OP_PUBKEYHASH = 0xfd,
Expand Down Expand Up @@ -568,7 +570,7 @@ class CScript : public std::vector<unsigned char>
bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript& script, const CTransaction& txTo, unsigned int nIn, int nHashType);
bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<std::vector<unsigned char> >& vSolutionsRet);
int ScriptSigArgsExpected(txnouttype t, const std::vector<std::vector<unsigned char> >& vSolutions);
bool IsStandard(const CScript& scriptPubKey);
bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType);
bool IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
bool ExtractAddress(const CScript& scriptPubKey, CBitcoinAddress& addressRet);
bool ExtractAddresses(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<CBitcoinAddress>& addressRet, int& nRequiredRet);
Expand Down

0 comments on commit b4f6aa2

Please sign in to comment.