Skip to content

Commit

Permalink
Do not blanket set pox_sync_sample_secs to a postiive integer
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
  • Loading branch information
jferrant committed Sep 25, 2024
1 parent 257e7ec commit 371de4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testnet/stacks-node/src/tests/nakamoto_integrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ pub fn naka_neon_integration_conf(seed: Option<&[u8]>) -> (Config, StacksAddress

conf.burnchain.magic_bytes = MagicBytes::from(['T' as u8, '3' as u8].as_ref());
conf.burnchain.poll_time_secs = 1;
conf.node.pox_sync_sample_secs = 5;
conf.node.pox_sync_sample_secs = 0;

conf.miner.first_attempt_time_ms = i64::max_value() as u64;
conf.miner.subsequent_attempt_time_ms = i64::max_value() as u64;
Expand Down Expand Up @@ -2159,6 +2159,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;
let sender_sk = Secp256k1PrivateKey::new();
let sender_signer_sk = Secp256k1PrivateKey::new();
let sender_signer_addr = tests::to_addr(&sender_signer_sk);
Expand Down
1 change: 1 addition & 0 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3347,6 +3347,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.seed = btc_miner_1_seed.clone();
config.node.local_peer_seed = btc_miner_1_seed.clone();
Expand Down

0 comments on commit 371de4e

Please sign in to comment.