Skip to content

Commit 9f53c01

Browse files
committed
compiler: split segwit_limits test into 2
This test takes ~28 seconds on my system, but it is doing two independent compilations in serial. If I split it into two, then they can run in parallel and the total time is about 16 seconds.
1 parent 7de96d3 commit 9f53c01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/policy/compiler.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ mod tests {
15111511
}
15121512

15131513
#[test]
1514-
fn segwit_limits() {
1514+
fn segwit_limits_1() {
15151515
// Hit the maximum witness script size limit.
15161516
// or(thresh(52, [pubkey; 52]), thresh(52, [pubkey; 52])) results in a 3642-bytes long
15171517
// witness script with only 54 stack elements
@@ -1537,7 +1537,10 @@ mod tests {
15371537
"Compilation succeeded with a witscript size of '{:?}'",
15381538
script_size,
15391539
);
1540+
}
15401541

1542+
#[test]
1543+
fn segwit_limits_2() {
15411544
// Hit the maximum witness stack elements limit
15421545
let (keys, _) = pubkeys_and_a_sig(100);
15431546
let keys: Vec<Arc<Concrete<bitcoin::PublicKey>>> = keys

0 commit comments

Comments
 (0)