diff options
author | gavinandresen <gavinandresen@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-12-07 13:43:31 +0000 |
---|---|---|
committer | gavinandresen <gavinandresen@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-12-07 13:43:31 +0000 |
commit | a206a23980c15cacf39d267c509bd70c23c94bfa (patch) | |
tree | 7a4e29a09bbf32fb9f84abefdd8eb9504195fa32 /script.cpp | |
parent | 865c3a23832e36d50cb873d38c976032b027b5d3 (diff) |
IsStandard() check for CScripts: only relay/include in blocks CScripts we can understand.
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@197 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'script.cpp')
-rw-r--r-- | script.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/script.cpp b/script.cpp index a09031bad5..a6ed15f801 100644 --- a/script.cpp +++ b/script.cpp @@ -1076,6 +1076,13 @@ bool Solver(const CScript& scriptPubKey, uint256 hash, int nHashType, CScript& s } +bool IsStandard(const CScript& scriptPubKey) +{ + vector<pair<opcodetype, valtype> > vSolution; + return Solver(scriptPubKey, vSolution); +} + + bool IsMine(const CScript& scriptPubKey) { CScript scriptSig; |