From 87fe71e1fc810ee120a10063fdd26c3245686d54 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 24 Sep 2013 00:48:00 +0200 Subject: Add HasCanonicalPushes(), and use it in IsStandardTx --- src/script.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/script.h') diff --git a/src/script.h b/src/script.h index a0a6cd1c44..335ddfb1b2 100644 --- a/src/script.h +++ b/src/script.h @@ -541,9 +541,12 @@ public: bool IsPayToScriptHash() const; - // Called by IsStandardTx + // Called by IsStandardTx and P2SH VerifyScript (which makes it consensus-critical). bool IsPushOnly() const; + // Called by IsStandardTx. + bool HasCanonicalPushes() const; + // Returns whether the script is guaranteed to fail at execution, // regardless of the initial stack. This allows outputs to be pruned // instantly when entering the UTXO set. -- cgit v1.2.3