Skip to content

Commit

Permalink
Increase pox_sync_sample_secs to 5 to be on the safe side when waitin…
Browse files Browse the repository at this point in the history
…g for anchor blocks to arrive

Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Oct 2, 2024
1 parent 9eb4e05 commit db105e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion testnet/stacks-node/src/tests/nakamoto_integrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@ fn multiple_miners() {
let node_2_p2p = 51025;
let http_origin = format!("http://{}", &naka_conf.node.rpc_bind);
naka_conf.miner.wait_on_interim_blocks = Duration::from_secs(1);
naka_conf.node.pox_sync_sample_secs = 1;
naka_conf.node.pox_sync_sample_secs = 5;
let sender_sk = Secp256k1PrivateKey::new();
let sender_signer_sk = Secp256k1PrivateKey::new();
let sender_signer_addr = tests::to_addr(&sender_signer_sk);
Expand Down
6 changes: 3 additions & 3 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ fn multiple_miners() {
config.node.data_url = format!("http://{localhost}:{node_1_rpc}");
config.node.p2p_address = format!("{localhost}:{node_1_p2p}");
config.miner.wait_on_interim_blocks = Duration::from_secs(5);
config.node.pox_sync_sample_secs = 1;
config.node.pox_sync_sample_secs = 5;

config.node.seed = btc_miner_1_seed.clone();
config.node.local_peer_seed = btc_miner_1_seed.clone();
Expand Down Expand Up @@ -3430,7 +3430,7 @@ fn multiple_miners_with_nakamoto_blocks() {
config.node.data_url = format!("http://{localhost}:{node_1_rpc}");
config.node.p2p_address = format!("{localhost}:{node_1_p2p}");
config.miner.wait_on_interim_blocks = Duration::from_secs(5);
config.node.pox_sync_sample_secs = 1;
config.node.pox_sync_sample_secs = 5;

config.node.seed = btc_miner_1_seed.clone();
config.node.local_peer_seed = btc_miner_1_seed.clone();
Expand Down Expand Up @@ -3693,7 +3693,7 @@ fn partial_tenure_fork() {
config.node.data_url = format!("http://{localhost}:{node_1_rpc}");
config.node.p2p_address = format!("{localhost}:{node_1_p2p}");
config.miner.wait_on_interim_blocks = Duration::from_secs(5);
config.node.pox_sync_sample_secs = 1;
config.node.pox_sync_sample_secs = 5;

config.node.seed = btc_miner_1_seed.clone();
config.node.local_peer_seed = btc_miner_1_seed.clone();
Expand Down

0 comments on commit db105e0

Please sign in to comment.