Skip to content

Commit 2d5e219

Browse files
committed
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 <[email protected]>
1 parent 5f40e2b commit 2d5e219

File tree

1 file changed

+13
-3
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+13
-3
lines changed

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,7 +2960,10 @@ fn idle_tenure_extend_active_mining() {
29602960
|config| {
29612961
config.tenure_idle_timeout = idle_timeout;
29622962
},
2963-
|_| {},
2963+
|config| {
2964+
// accept all proposals in the node
2965+
config.connection_options.block_proposal_max_age_secs = u64::MAX;
2966+
},
29642967
None,
29652968
None,
29662969
);
@@ -2981,7 +2984,7 @@ fn idle_tenure_extend_active_mining() {
29812984
// Add a delay to the block validation process
29822985
TEST_VALIDATE_DELAY_DURATION_SECS.lock().unwrap().replace(3);
29832986

2984-
signer_test.mine_nakamoto_block(Duration::from_secs(30), true);
2987+
signer_test.mine_nakamoto_block(Duration::from_secs(60), true);
29852988

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

@@ -6159,9 +6162,16 @@ fn miner_recovers_when_broadcast_block_delay_across_tenures_occurs() {
61596162
let send_fee = 180;
61606163
let nmb_txs = 3;
61616164
let recipient = PrincipalData::from(StacksAddress::burn_address(false));
6162-
let mut signer_test: SignerTest<SpawnedSigner> = SignerTest::new(
6165+
let mut signer_test: SignerTest<SpawnedSigner> = SignerTest::new_with_config_modifications(
61636166
num_signers,
61646167
vec![(sender_addr, (send_amt + send_fee) * nmb_txs)],
6168+
|_config| {},
6169+
|config| {
6170+
// Accept all block proposals
6171+
config.connection_options.block_proposal_max_age_secs = u64::MAX;
6172+
},
6173+
None,
6174+
None,
61656175
);
61666176
let http_origin = format!("http://{}", &signer_test.running_nodes.conf.node.rpc_bind);
61676177
signer_test.boot_to_epoch_3();

0 commit comments

Comments
 (0)