Skip to content

Commit 2fb170b

Browse files
committed
Increase the max number of nakamoto tenures to match the pox reward length
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent f6d50c5 commit 2fb170b

File tree

1 file changed

+3
-3
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,8 @@ fn multiple_miners() {
14601460
let node_2_rpc_bind = format!("{localhost}:{node_2_rpc}");
14611461
let mut node_2_listeners = Vec::new();
14621462

1463+
1464+
let max_nakamoto_tenures = 30;
14631465
// partition the signer set so that ~half are listening and using node 1 for RPC and events,
14641466
// and the rest are using node 2
14651467

@@ -1481,7 +1483,7 @@ fn multiple_miners() {
14811483
config.node.p2p_address = format!("{localhost}:{node_1_p2p}");
14821484
config.miner.wait_on_interim_blocks = Duration::from_secs(5);
14831485
config.node.pox_sync_sample_secs = 30;
1484-
config.burnchain.pox_reward_length = Some(30);
1486+
config.burnchain.pox_reward_length = Some(max_nakamoto_tenures);
14851487

14861488
config.node.seed = btc_miner_1_seed.clone();
14871489
config.node.local_peer_seed = btc_miner_1_seed.clone();
@@ -1561,8 +1563,6 @@ fn multiple_miners() {
15611563

15621564
info!("------------------------- Reached Epoch 3.0 -------------------------");
15631565

1564-
let max_nakamoto_tenures = 20;
1565-
15661566
// due to the random nature of mining sortitions, the way this test is structured
15671567
// is that we keep track of how many tenures each miner produced, and once enough sortitions
15681568
// have been produced such that each miner has produced 3 tenures, we stop and check the

0 commit comments

Comments
 (0)