Skip to content

Commit 4d913ee

Browse files
committed
Merge rust-bitcoin#746: fix: sync max multi_a pubkey with core
96d8662 fix: sync max multi_a pubkey with core (Chris Hyunhum Cho) Pull request description: Although this is checked indirectly by checking MAX_STACK_SIZE, it'd be better to check in threshold explicitly as core does. ACKs for top commit: apoelstra: ACK 96d8662 successfully ran local tests sanket1729: ACK 96d8662 Tree-SHA512: 77af95e605ea2a26b92f54d5b16e1078396ac548d5a57b29afef0207061631c32c0577c11c6c23ae87a2c2c6753e8445c0137d379570a3b993dc4b41a1cade3d
2 parents 5d54ee3 + 96d8662 commit 4d913ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/miniscript/limits.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ pub const MAX_BLOCK_WEIGHT: usize = 4000000;
3434
// https://github.com/bitcoin/bitcoin/blob/6acda4b00b3fc1bfac02f5de590e1a5386cbc779/src/script/script.h#L30
3535
pub const MAX_PUBKEYS_PER_MULTISIG: usize = 20;
3636
/// Maximum pubkeys in a CHECKSIGADD construction.
37-
pub const MAX_PUBKEYS_IN_CHECKSIGADD: usize = (bitcoin::Weight::MAX_BLOCK.to_wu() / 32) as usize;
37+
// https://github.com/bitcoin/bitcoin/blob/99b06b7f1d4194fb8036b90e5308101645f968e7/src/script/script.h#L36
38+
pub const MAX_PUBKEYS_IN_CHECKSIGADD: usize = 999;

0 commit comments

Comments
 (0)