Add HasCanonicalPushes(), and use it in IsStandardTx

This commit is contained in:
Pieter Wuille
2013-09-24 00:48:00 +02:00
committed by Pieter Wuille
parent 9aea601b05
commit 87fe71e1fc
4 changed files with 53 additions and 1 deletions

View File

@@ -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.