File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -2960,7 +2960,10 @@ fn idle_tenure_extend_active_mining() {
2960
2960
|config| {
2961
2961
config. tenure_idle_timeout = idle_timeout;
2962
2962
} ,
2963
- |_| { } ,
2963
+ |config| {
2964
+ // accept all proposals in the node
2965
+ config. connection_options . block_proposal_max_age_secs = u64:: MAX ;
2966
+ } ,
2964
2967
None ,
2965
2968
None ,
2966
2969
) ;
@@ -2981,7 +2984,7 @@ fn idle_tenure_extend_active_mining() {
2981
2984
// Add a delay to the block validation process
2982
2985
TEST_VALIDATE_DELAY_DURATION_SECS . lock ( ) . unwrap ( ) . replace ( 3 ) ;
2983
2986
2984
- signer_test. mine_nakamoto_block ( Duration :: from_secs ( 30 ) , true ) ;
2987
+ signer_test. mine_nakamoto_block ( Duration :: from_secs ( 60 ) , true ) ;
2985
2988
2986
2989
info ! ( "---- Getting current idle timeout ----" ) ;
2987
2990
@@ -6159,9 +6162,16 @@ fn miner_recovers_when_broadcast_block_delay_across_tenures_occurs() {
6159
6162
let send_fee = 180 ;
6160
6163
let nmb_txs = 3 ;
6161
6164
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 (
6163
6166
num_signers,
6164
6167
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 ,
6165
6175
) ;
6166
6176
let http_origin = format ! ( "http://{}" , & signer_test. running_nodes. conf. node. rpc_bind) ;
6167
6177
signer_test. boot_to_epoch_3 ( ) ;
You can’t perform that action at this time.
0 commit comments