Skip to content

Commit ea0e786

Browse files
committed
Document additional IsWitnessStandard behavior
1 parent 6040de9 commit ea0e786

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/policy/policy.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs,
103103
/**
104104
* Check if the transaction is over standard P2WSH resources limit:
105105
* 3600bytes witnessScript size, 80bytes per witness stack element, 100 witness stack elements
106-
* These limits are adequate for multi-signature up to n-of-100 using OP_CHECKSIG, OP_ADD, and OP_EQUAL,
106+
* These limits are adequate for multisignatures up to n-of-100 using OP_CHECKSIG, OP_ADD, and OP_EQUAL.
107+
*
108+
* Also enforce a maximum stack item size limit and no annexes for tapscript spends.
107109
*/
108110
bool IsWitnessStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs);
109111

0 commit comments

Comments
 (0)