Skip to content

Commit ba58afd

Browse files
committed
Do not allow test to proceed without restarted signer contributing to the block push
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 66287db commit ba58afd

File tree

1 file changed

+4
-1
lines changed
  • stacks-node/src/tests/signer

1 file changed

+4
-1
lines changed

stacks-node/src/tests/signer/v0.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18335,14 +18335,17 @@ fn signer_loads_stackerdb_updates_on_startup() {
1833518335
// Wait until signer boots up BEFORE proposing the next block
1833618336
miners.signer_test.wait_for_registered();
1833718337
info!("------------------------- Miner B Mines Block N+2 (Transfer) -------------------------");
18338+
let (accepting, ignoring) = all_signers.split_at(4);
18339+
// Make some of the signers ignore so that we CANNOT advance without approval from the restarted signer (its at index 0)
18340+
TEST_IGNORE_ALL_BLOCK_PROPOSALS.set(ignoring.into());
1833818341
miners.send_transfer_tx();
1833918342
let block_n_2 =
1834018343
wait_for_block_pushed_by_miner_key(30, chain_after.stacks_tip_height + 2, &miner_pk_2)
1834118344
.expect("Failed to mine block N+2");
1834218345
wait_for_block_acceptance_from_signers(
1834318346
30,
1834418347
&block_n_2.header.signer_signature_hash(),
18345-
&all_signers,
18348+
&accepting,
1834618349
)
1834718350
.expect("Not all signers accepted the block");
1834818351

0 commit comments

Comments
 (0)