Skip to content

Commit

Permalink
Accept all proposals to the proposal endpoint in idle_tenure_extend_a…
Browse files Browse the repository at this point in the history
…ctive_mining and miner_recovers_when_broadcast_block_delay_across_tenures_occurs

Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Dec 17, 2024
1 parent 5f40e2b commit 2d5e219
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2960,7 +2960,10 @@ fn idle_tenure_extend_active_mining() {
|config| {
config.tenure_idle_timeout = idle_timeout;
},
|_| {},
|config| {
// accept all proposals in the node
config.connection_options.block_proposal_max_age_secs = u64::MAX;
},
None,
None,
);
Expand All @@ -2981,7 +2984,7 @@ fn idle_tenure_extend_active_mining() {
// Add a delay to the block validation process
TEST_VALIDATE_DELAY_DURATION_SECS.lock().unwrap().replace(3);

signer_test.mine_nakamoto_block(Duration::from_secs(30), true);
signer_test.mine_nakamoto_block(Duration::from_secs(60), true);

info!("---- Getting current idle timeout ----");

Expand Down Expand Up @@ -6159,9 +6162,16 @@ fn miner_recovers_when_broadcast_block_delay_across_tenures_occurs() {
let send_fee = 180;
let nmb_txs = 3;
let recipient = PrincipalData::from(StacksAddress::burn_address(false));
let mut signer_test: SignerTest<SpawnedSigner> = SignerTest::new(
let mut signer_test: SignerTest<SpawnedSigner> = SignerTest::new_with_config_modifications(
num_signers,
vec![(sender_addr, (send_amt + send_fee) * nmb_txs)],
|_config| {},
|config| {
// Accept all block proposals
config.connection_options.block_proposal_max_age_secs = u64::MAX;
},
None,
None,
);
let http_origin = format!("http://{}", &signer_test.running_nodes.conf.node.rpc_bind);
signer_test.boot_to_epoch_3();
Expand Down

0 comments on commit 2d5e219

Please sign in to comment.