Skip to content

Commit db105e0

Browse files
committed
Increase pox_sync_sample_secs to 5 to be on the safe side when waiting for anchor blocks to arrive
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 9eb4e05 commit db105e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ fn multiple_miners() {
20532053
let node_2_p2p = 51025;
20542054
let http_origin = format!("http://{}", &naka_conf.node.rpc_bind);
20552055
naka_conf.miner.wait_on_interim_blocks = Duration::from_secs(1);
2056-
naka_conf.node.pox_sync_sample_secs = 1;
2056+
naka_conf.node.pox_sync_sample_secs = 5;
20572057
let sender_sk = Secp256k1PrivateKey::new();
20582058
let sender_signer_sk = Secp256k1PrivateKey::new();
20592059
let sender_signer_addr = tests::to_addr(&sender_signer_sk);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ fn multiple_miners() {
14681468
config.node.data_url = format!("http://{localhost}:{node_1_rpc}");
14691469
config.node.p2p_address = format!("{localhost}:{node_1_p2p}");
14701470
config.miner.wait_on_interim_blocks = Duration::from_secs(5);
1471-
config.node.pox_sync_sample_secs = 1;
1471+
config.node.pox_sync_sample_secs = 5;
14721472

14731473
config.node.seed = btc_miner_1_seed.clone();
14741474
config.node.local_peer_seed = btc_miner_1_seed.clone();
@@ -3430,7 +3430,7 @@ fn multiple_miners_with_nakamoto_blocks() {
34303430
config.node.data_url = format!("http://{localhost}:{node_1_rpc}");
34313431
config.node.p2p_address = format!("{localhost}:{node_1_p2p}");
34323432
config.miner.wait_on_interim_blocks = Duration::from_secs(5);
3433-
config.node.pox_sync_sample_secs = 1;
3433+
config.node.pox_sync_sample_secs = 5;
34343434

34353435
config.node.seed = btc_miner_1_seed.clone();
34363436
config.node.local_peer_seed = btc_miner_1_seed.clone();
@@ -3693,7 +3693,7 @@ fn partial_tenure_fork() {
36933693
config.node.data_url = format!("http://{localhost}:{node_1_rpc}");
36943694
config.node.p2p_address = format!("{localhost}:{node_1_p2p}");
36953695
config.miner.wait_on_interim_blocks = Duration::from_secs(5);
3696-
config.node.pox_sync_sample_secs = 1;
3696+
config.node.pox_sync_sample_secs = 5;
36973697

36983698
config.node.seed = btc_miner_1_seed.clone();
36993699
config.node.local_peer_seed = btc_miner_1_seed.clone();

0 commit comments

Comments
 (0)