From a206a23980c15cacf39d267c509bd70c23c94bfa Mon Sep 17 00:00:00 2001 From: gavinandresen Date: Tue, 7 Dec 2010 13:43:31 +0000 Subject: 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 --- script.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'script.cpp') 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 > vSolution; + return Solver(scriptPubKey, vSolution); +} + + bool IsMine(const CScript& scriptPubKey) { CScript scriptSig; -- cgit v1.2.3