aboutsummaryrefslogtreecommitdiff
path: root/src/policy
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-10-21 13:03:38 -0700
committerPieter Wuille <pieter@wuille.net>2020-11-26 14:56:25 -0800
commitea0e78677bdbe3313f594118c500cf7784c56970 (patch)
treef894163055b8212cd0b78e8fbfeddf5dcaa26218 /src/policy
parent6040de9a46725826330cd63cdf76e2121a18e728 (diff)
downloadbitcoin-ea0e78677bdbe3313f594118c500cf7784c56970.tar.xz
Document additional IsWitnessStandard behavior
Diffstat (limited to 'src/policy')
-rw-r--r--src/policy/policy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h
index 8090dff4c6..466cf029a4 100644
--- a/src/policy/policy.h
+++ b/src/policy/policy.h
@@ -103,7 +103,9 @@ bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs,
/**
* Check if the transaction is over standard P2WSH resources limit:
* 3600bytes witnessScript size, 80bytes per witness stack element, 100 witness stack elements
- * These limits are adequate for multi-signature up to n-of-100 using OP_CHECKSIG, OP_ADD, and OP_EQUAL,
+ * These limits are adequate for multisignatures up to n-of-100 using OP_CHECKSIG, OP_ADD, and OP_EQUAL.
+ *
+ * Also enforce a maximum stack item size limit and no annexes for tapscript spends.
*/
bool IsWitnessStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs);