From c5fe688850d6bfaf124831de664365aac3571322 Mon Sep 17 00:00:00 2001 From: Jacinta Ferrant Date: Tue, 17 Dec 2024 11:01:49 -0500 Subject: [PATCH] Accept all proposals to the proposal endpoint in idle_tenure_extend_active_mining and miner_recovers_when_broadcast_block_delay_across_tenures_occurs Signed-off-by: Jacinta Ferrant --- testnet/stacks-node/src/tests/signer/v0.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/testnet/stacks-node/src/tests/signer/v0.rs b/testnet/stacks-node/src/tests/signer/v0.rs index 4002899cf12..8ef42572044 100644 --- a/testnet/stacks-node/src/tests/signer/v0.rs +++ b/testnet/stacks-node/src/tests/signer/v0.rs @@ -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, ); @@ -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 = SignerTest::new( + let mut signer_test: SignerTest = 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();