@@ -1480,7 +1480,6 @@ fn simple_neon_integration() {
1480
1480
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
1481
1481
let prom_bind = "127.0.0.1:6000" . to_string ( ) ;
1482
1482
naka_conf. node . prometheus_bind = Some ( prom_bind. clone ( ) ) ;
1483
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 5 ) ;
1484
1483
// set the block commit delay very high, so that we can safely assert that
1485
1484
// only one commit is submitted per tenure without generating test flake.
1486
1485
naka_conf. miner . block_commit_delay = Duration :: from_secs ( 600 ) ;
@@ -1707,7 +1706,6 @@ fn restarting_miner() {
1707
1706
naka_conf. node . prometheus_bind = Some ( prom_bind. clone ( ) ) ;
1708
1707
naka_conf. miner . activated_vrf_key_path =
1709
1708
Some ( format ! ( "{}/vrf_key" , naka_conf. node. working_dir) ) ;
1710
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 5 ) ;
1711
1709
let sender_sk = Secp256k1PrivateKey :: from_seed ( & [ 1 , 2 , 1 , 2 , 1 , 2 ] ) ;
1712
1710
// setup sender + recipient for a test stx transfer
1713
1711
let sender_addr = tests:: to_addr ( & sender_sk) ;
@@ -1929,7 +1927,6 @@ fn flash_blocks_on_epoch_3_FLAKY() {
1929
1927
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
1930
1928
let prom_bind = "127.0.0.1:6000" . to_string ( ) ;
1931
1929
naka_conf. node . prometheus_bind = Some ( prom_bind) ;
1932
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
1933
1930
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
1934
1931
// setup sender + recipient for a test stx transfer
1935
1932
let sender_addr = tests:: to_addr ( & sender_sk) ;
@@ -2172,7 +2169,6 @@ fn mine_multiple_per_tenure_integration() {
2172
2169
2173
2170
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
2174
2171
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
2175
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
2176
2172
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
2177
2173
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
2178
2174
let sender_signer_addr = tests:: to_addr ( & sender_signer_sk) ;
@@ -2356,7 +2352,6 @@ fn multiple_miners() {
2356
2352
let node_2_rpc = 51026 ;
2357
2353
let node_2_p2p = 51025 ;
2358
2354
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
2359
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
2360
2355
naka_conf. node . pox_sync_sample_secs = 30 ;
2361
2356
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
2362
2357
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
@@ -2611,7 +2606,6 @@ fn correct_burn_outs() {
2611
2606
epochs[ StacksEpochId :: Epoch30 ] . start_height = 225 ;
2612
2607
}
2613
2608
2614
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
2615
2609
naka_conf. initial_balances . clear ( ) ;
2616
2610
let accounts: Vec < _ > = ( 0 ..8 )
2617
2611
. map ( |ix| {
@@ -3296,7 +3290,7 @@ fn miner_writes_proposed_block_to_stackerdb() {
3296
3290
}
3297
3291
3298
3292
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
3299
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1000 ) ;
3293
+ naka_conf. miner . min_time_between_blocks_ms = 1_000_000 ;
3300
3294
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
3301
3295
// setup sender + recipient for a test stx transfer
3302
3296
let sender_addr = tests:: to_addr ( & sender_sk) ;
@@ -3413,7 +3407,6 @@ fn vote_for_aggregate_key_burn_op() {
3413
3407
3414
3408
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
3415
3409
let _http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
3416
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
3417
3410
let signer_sk = Secp256k1PrivateKey :: random ( ) ;
3418
3411
let signer_addr = tests:: to_addr ( & signer_sk) ;
3419
3412
@@ -3631,7 +3624,6 @@ fn follower_bootup_simple() {
3631
3624
3632
3625
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
3633
3626
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
3634
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
3635
3627
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
3636
3628
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
3637
3629
let sender_signer_addr = tests:: to_addr ( & sender_signer_sk) ;
@@ -3948,7 +3940,6 @@ fn follower_bootup_across_multiple_cycles() {
3948
3940
}
3949
3941
3950
3942
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
3951
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
3952
3943
naka_conf. node . pox_sync_sample_secs = 180 ;
3953
3944
naka_conf. burnchain . max_rbf = 10_000_000 ;
3954
3945
@@ -4175,7 +4166,6 @@ fn follower_bootup_custom_chain_id() {
4175
4166
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
4176
4167
naka_conf. burnchain . chain_id = 0x87654321 ;
4177
4168
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
4178
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
4179
4169
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
4180
4170
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
4181
4171
let sender_signer_addr = tests:: to_addr ( & sender_signer_sk) ;
@@ -4508,7 +4498,6 @@ fn burn_ops_integration_test() {
4508
4498
4509
4499
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
4510
4500
naka_conf. burnchain . satoshis_per_byte = 2 ;
4511
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
4512
4501
4513
4502
let signer_sk_1 = setup_stacker ( & mut naka_conf) ;
4514
4503
let signer_addr_1 = tests:: to_addr ( & signer_sk_1) ;
@@ -5102,7 +5091,6 @@ fn forked_tenure_is_ignored() {
5102
5091
}
5103
5092
5104
5093
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
5105
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 10 ) ;
5106
5094
naka_conf. miner . block_commit_delay = Duration :: from_secs ( 0 ) ;
5107
5095
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
5108
5096
// setup sender + recipient for a test stx transfer
@@ -5462,7 +5450,6 @@ fn check_block_heights() {
5462
5450
let mut signers = TestSigners :: default ( ) ;
5463
5451
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
5464
5452
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
5465
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
5466
5453
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
5467
5454
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
5468
5455
let sender_signer_addr = tests:: to_addr ( & sender_signer_sk) ;
@@ -6199,7 +6186,6 @@ fn clarity_burn_state() {
6199
6186
let mut signers = TestSigners :: default ( ) ;
6200
6187
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
6201
6188
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
6202
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
6203
6189
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
6204
6190
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
6205
6191
let sender_signer_addr = tests:: to_addr ( & sender_signer_sk) ;
@@ -6471,7 +6457,6 @@ fn signer_chainstate() {
6471
6457
let prom_bind = "127.0.0.1:6000" . to_string ( ) ;
6472
6458
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
6473
6459
naka_conf. node . prometheus_bind = Some ( prom_bind. clone ( ) ) ;
6474
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
6475
6460
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
6476
6461
// setup sender + recipient for a test stx transfer
6477
6462
let sender_addr = tests:: to_addr ( & sender_sk) ;
@@ -7044,7 +7029,6 @@ fn continue_tenure_extend() {
7044
7029
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
7045
7030
let prom_bind = "127.0.0.1:6000" . to_string ( ) ;
7046
7031
naka_conf. node . prometheus_bind = Some ( prom_bind. clone ( ) ) ;
7047
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
7048
7032
naka_conf. connection_options . block_proposal_max_age_secs = u64:: MAX ;
7049
7033
naka_conf. miner . block_commit_delay = Duration :: from_secs ( 600 ) ;
7050
7034
let http_origin = naka_conf. node . data_url . clone ( ) ;
@@ -7489,7 +7473,6 @@ fn check_block_times() {
7489
7473
let mut signers = TestSigners :: default ( ) ;
7490
7474
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
7491
7475
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
7492
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
7493
7476
naka_conf. burnchain . chain_id = CHAIN_ID_TESTNET + 1 ;
7494
7477
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
7495
7478
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
@@ -7878,7 +7861,6 @@ fn check_block_info() {
7878
7861
// change the chain id so that it isn't the same as primary testnet
7879
7862
naka_conf. burnchain . chain_id = CHAIN_ID_TESTNET + 1 ;
7880
7863
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
7881
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
7882
7864
naka_conf. miner . tenure_cost_limit_per_block_percentage = None ;
7883
7865
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
7884
7866
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
@@ -8510,7 +8492,6 @@ fn check_block_info_rewards() {
8510
8492
let mut signers = TestSigners :: default ( ) ;
8511
8493
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
8512
8494
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
8513
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
8514
8495
naka_conf. burnchain . chain_id = CHAIN_ID_TESTNET + 1 ;
8515
8496
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
8516
8497
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
@@ -8838,7 +8819,6 @@ fn mock_mining() {
8838
8819
}
8839
8820
8840
8821
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
8841
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
8842
8822
naka_conf. node . pox_sync_sample_secs = 30 ;
8843
8823
naka_conf. miner . tenure_cost_limit_per_block_percentage = None ;
8844
8824
let sender_sk = Secp256k1PrivateKey :: random ( ) ;
@@ -9143,7 +9123,7 @@ fn utxo_check_on_startup_panic() {
9143
9123
println ! ( "Nakamoto node started with config: {naka_conf:?}" ) ;
9144
9124
let prom_bind = "127.0.0.1:6000" . to_string ( ) ;
9145
9125
naka_conf. node . prometheus_bind = Some ( prom_bind) ;
9146
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1000 ) ;
9126
+ naka_conf. miner . min_time_between_blocks_ms = 1_000_000 ;
9147
9127
9148
9128
test_observer:: spawn ( ) ;
9149
9129
test_observer:: register_any ( & mut naka_conf) ;
@@ -9219,7 +9199,7 @@ fn utxo_check_on_startup_recover() {
9219
9199
println ! ( "Nakamoto node started with config: {naka_conf:?}" ) ;
9220
9200
let prom_bind = "127.0.0.1:6000" . to_string ( ) ;
9221
9201
naka_conf. node . prometheus_bind = Some ( prom_bind) ;
9222
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1000 ) ;
9202
+ naka_conf. miner . min_time_between_blocks_ms = 1_000_000 ;
9223
9203
9224
9204
test_observer:: spawn ( ) ;
9225
9205
test_observer:: register_any ( & mut naka_conf) ;
@@ -9279,7 +9259,6 @@ fn v3_signer_api_endpoint() {
9279
9259
let ( mut conf, _miner_account) = naka_neon_integration_conf ( None ) ;
9280
9260
let password = "12345" . to_string ( ) ;
9281
9261
conf. connection_options . auth_token = Some ( password) ;
9282
- conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
9283
9262
let stacker_sk = setup_stacker ( & mut conf) ;
9284
9263
let signer_sk = Secp256k1PrivateKey :: random ( ) ;
9285
9264
let signer_addr = tests:: to_addr ( & signer_sk) ;
@@ -9445,7 +9424,6 @@ fn v3_blockbyheight_api_endpoint() {
9445
9424
let ( mut conf, _miner_account) = naka_neon_integration_conf ( None ) ;
9446
9425
let password = "12345" . to_string ( ) ;
9447
9426
conf. connection_options . auth_token = Some ( password) ;
9448
- conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
9449
9427
let stacker_sk = setup_stacker ( & mut conf) ;
9450
9428
let signer_sk = Secp256k1PrivateKey :: random ( ) ;
9451
9429
let signer_addr = tests:: to_addr ( & signer_sk) ;
@@ -9563,7 +9541,6 @@ fn nakamoto_lockup_events() {
9563
9541
let ( mut conf, _miner_account) = naka_neon_integration_conf ( None ) ;
9564
9542
let password = "12345" . to_string ( ) ;
9565
9543
conf. connection_options . auth_token = Some ( password) ;
9566
- conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
9567
9544
let stacker_sk = setup_stacker ( & mut conf) ;
9568
9545
let signer_sk = Secp256k1PrivateKey :: random ( ) ;
9569
9546
let signer_addr = tests:: to_addr ( & signer_sk) ;
@@ -9732,7 +9709,6 @@ fn skip_mining_long_tx() {
9732
9709
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
9733
9710
let prom_bind = "127.0.0.1:6000" . to_string ( ) ;
9734
9711
naka_conf. node . prometheus_bind = Some ( prom_bind) ;
9735
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
9736
9712
naka_conf. miner . nakamoto_attempt_time_ms = 5_000 ;
9737
9713
naka_conf. miner . tenure_cost_limit_per_block_percentage = None ;
9738
9714
let sender_1_sk = Secp256k1PrivateKey :: from_seed ( & [ 30 ] ) ;
@@ -10089,7 +10065,6 @@ fn sip029_coinbase_change() {
10089
10065
set_test_coinbase_schedule ( Some ( new_sched) ) ;
10090
10066
10091
10067
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
10092
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
10093
10068
naka_conf. node . pox_sync_sample_secs = 180 ;
10094
10069
naka_conf. burnchain . max_rbf = 10_000_000 ;
10095
10070
@@ -10289,7 +10264,6 @@ fn clarity_cost_spend_down() {
10289
10264
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
10290
10265
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
10291
10266
let num_signers = 30 ;
10292
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
10293
10267
let sender_sks: Vec < _ > = ( 0 ..num_signers)
10294
10268
. map ( |_| Secp256k1PrivateKey :: random ( ) )
10295
10269
. collect ( ) ;
@@ -10578,7 +10552,6 @@ fn consensus_hash_event_dispatcher() {
10578
10552
let ( mut conf, _miner_account) = naka_neon_integration_conf ( None ) ;
10579
10553
let password = "12345" . to_string ( ) ;
10580
10554
conf. connection_options . auth_token = Some ( password. clone ( ) ) ;
10581
- conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
10582
10555
let stacker_sk = setup_stacker ( & mut conf) ;
10583
10556
let signer_sk = Secp256k1PrivateKey :: random ( ) ;
10584
10557
let signer_addr = tests:: to_addr ( & signer_sk) ;
@@ -11021,7 +10994,6 @@ fn mine_invalid_principal_from_consensus_buff() {
11021
10994
let password = "12345" . to_string ( ) ;
11022
10995
let http_origin = format ! ( "http://{}" , & conf. node. rpc_bind) ;
11023
10996
conf. connection_options . auth_token = Some ( password. clone ( ) ) ;
11024
- conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
11025
10997
let stacker_sk = setup_stacker ( & mut conf) ;
11026
10998
let signer_sk = Secp256k1PrivateKey :: random ( ) ;
11027
10999
let signer_addr = tests:: to_addr ( & signer_sk) ;
@@ -11136,7 +11108,6 @@ fn reload_miner_config() {
11136
11108
let password = "12345" . to_string ( ) ;
11137
11109
let _http_origin = format ! ( "http://{}" , & conf. node. rpc_bind) ;
11138
11110
conf. connection_options . auth_token = Some ( password. clone ( ) ) ;
11139
- conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
11140
11111
let stacker_sk = setup_stacker ( & mut conf) ;
11141
11112
let signer_sk = Secp256k1PrivateKey :: random ( ) ;
11142
11113
let signer_addr = tests:: to_addr ( & signer_sk) ;
@@ -11283,7 +11254,6 @@ fn rbf_on_config_change() {
11283
11254
let password = "12345" . to_string ( ) ;
11284
11255
let _http_origin = format ! ( "http://{}" , & conf. node. rpc_bind) ;
11285
11256
conf. connection_options . auth_token = Some ( password. clone ( ) ) ;
11286
- conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
11287
11257
conf. node . next_initiative_delay = 500 ;
11288
11258
let stacker_sk = setup_stacker ( & mut conf) ;
11289
11259
let signer_sk = Secp256k1PrivateKey :: random ( ) ;
@@ -11423,7 +11393,6 @@ fn large_mempool_base(strategy: MemPoolWalkStrategy, set_fee: impl Fn() -> u64)
11423
11393
}
11424
11394
11425
11395
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
11426
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
11427
11396
naka_conf. miner . mempool_walk_strategy = strategy;
11428
11397
11429
11398
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
@@ -11762,7 +11731,6 @@ fn larger_mempool() {
11762
11731
}
11763
11732
11764
11733
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
11765
- naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
11766
11734
naka_conf. miner . mempool_walk_strategy = MemPoolWalkStrategy :: NextNonceWithHighestFeeRate ;
11767
11735
11768
11736
let sender_signer_sk = Secp256k1PrivateKey :: random ( ) ;
0 commit comments