Add HasCanonicalPushes(), and use it in IsStandardTx
This commit is contained in:
committed by
Pieter Wuille
parent
9aea601b05
commit
87fe71e1fc
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user