diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-01-10 13:45:03 -0500 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2022-01-12 11:09:41 -0500 |
commit | 79728c4a3d8a74f276daf1e72abbdecdab85a5d8 (patch) | |
tree | ca61b3411b91eb06f26919541ec4561f848197c3 /src/script/script.h | |
parent | 25e95f9ff89a97b87ce218f28274c3c821b2d54d (diff) | |
download | bitcoin-79728c4a3d8a74f276daf1e72abbdecdab85a5d8.tar.xz |
Add (sorted)multi_a descriptor and script derivation
Diffstat (limited to 'src/script/script.h')
-rw-r--r-- | src/script/script.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/script.h b/src/script/script.h index 3425bf8102..ce4e885b50 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -29,6 +29,9 @@ static const int MAX_OPS_PER_SCRIPT = 201; // Maximum number of public keys per multisig static const int MAX_PUBKEYS_PER_MULTISIG = 20; +/** The limit of keys in OP_CHECKSIGADD-based scripts. It is due to the stack limit in BIP342. */ +static constexpr unsigned int MAX_PUBKEYS_PER_MULTI_A = 999; + // Maximum script length in bytes static const int MAX_SCRIPT_SIZE = 10000; |