mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
Document additional IsWitnessStandard behavior
This commit is contained in:
parent
6040de9a46
commit
ea0e78677b
@ -103,7 +103,9 @@ bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs,
|
|||||||
/**
|
/**
|
||||||
* Check if the transaction is over standard P2WSH resources limit:
|
* Check if the transaction is over standard P2WSH resources limit:
|
||||||
* 3600bytes witnessScript size, 80bytes per witness stack element, 100 witness stack elements
|
* 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);
|
bool IsWitnessStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user