@@ -662,7 +662,7 @@ pub fn naka_neon_integration_conf(seed: Option<&[u8]>) -> (Config, StacksAddress
662
662
}
663
663
664
664
pub fn next_block_and < F > (
665
- btc_controller : & mut BitcoinRegtestController ,
665
+ btc_controller : & BitcoinRegtestController ,
666
666
timeout_secs : u64 ,
667
667
mut check : F ,
668
668
) -> Result < ( ) , String >
@@ -673,12 +673,12 @@ where
673
673
}
674
674
675
675
pub fn next_block_and_controller < F > (
676
- btc_controller : & mut BitcoinRegtestController ,
676
+ btc_controller : & BitcoinRegtestController ,
677
677
timeout_secs : u64 ,
678
678
mut check : F ,
679
679
) -> Result < ( ) , String >
680
680
where
681
- F : FnMut ( & mut BitcoinRegtestController ) -> Result < bool , String > ,
681
+ F : FnMut ( & BitcoinRegtestController ) -> Result < bool , String > ,
682
682
{
683
683
eprintln ! ( "Issuing bitcoin block" ) ;
684
684
btc_controller. build_next_block ( 1 ) ;
@@ -711,7 +711,7 @@ where
711
711
/// Mine a bitcoin block, and wait until:
712
712
/// (1) a new block has been processed by the coordinator
713
713
pub fn next_block_and_process_new_stacks_block (
714
- btc_controller : & mut BitcoinRegtestController ,
714
+ btc_controller : & BitcoinRegtestController ,
715
715
timeout_secs : u64 ,
716
716
coord_channels : & Arc < Mutex < CoordinatorChannels > > ,
717
717
) -> Result < ( ) , String > {
@@ -736,7 +736,7 @@ pub fn next_block_and_process_new_stacks_block(
736
736
/// (2) 2 block commits have been issued ** or ** more than 10 seconds have
737
737
/// passed since (1) occurred
738
738
pub fn next_block_and_mine_commit (
739
- btc_controller : & mut BitcoinRegtestController ,
739
+ btc_controller : & BitcoinRegtestController ,
740
740
timeout_secs : u64 ,
741
741
node_conf : & Config ,
742
742
node_counters : & Counters ,
@@ -753,7 +753,7 @@ pub fn next_block_and_mine_commit(
753
753
/// Mine a bitcoin block, and wait until a block-commit has been issued, **or** a timeout occurs
754
754
/// (timeout_secs)
755
755
pub fn next_block_and_commits_only (
756
- btc_controller : & mut BitcoinRegtestController ,
756
+ btc_controller : & BitcoinRegtestController ,
757
757
timeout_secs : u64 ,
758
758
node_conf : & Config ,
759
759
node_counters : & Counters ,
@@ -773,7 +773,7 @@ pub fn next_block_and_commits_only(
773
773
/// passed since (1) occurred
774
774
/// This waits for this check to pass on *all* supplied channels
775
775
pub fn next_block_and_wait_for_commits (
776
- btc_controller : & mut BitcoinRegtestController ,
776
+ btc_controller : & BitcoinRegtestController ,
777
777
timeout_secs : u64 ,
778
778
node_confs : & [ & Config ] ,
779
779
node_counters : & [ & Counters ] ,
@@ -1237,7 +1237,7 @@ pub fn setup_epoch_3_reward_set(
1237
1237
blocks_processed : & Arc < AtomicU64 > ,
1238
1238
stacker_sks : & [ StacksPrivateKey ] ,
1239
1239
signer_sks : & [ StacksPrivateKey ] ,
1240
- btc_regtest_controller : & mut BitcoinRegtestController ,
1240
+ btc_regtest_controller : & BitcoinRegtestController ,
1241
1241
num_stacking_cycles : Option < u64 > ,
1242
1242
) {
1243
1243
assert_eq ! ( stacker_sks. len( ) , signer_sks. len( ) ) ;
@@ -1329,7 +1329,7 @@ pub fn boot_to_epoch_3_reward_set_calculation_boundary(
1329
1329
blocks_processed : & Arc < AtomicU64 > ,
1330
1330
stacker_sks : & [ StacksPrivateKey ] ,
1331
1331
signer_sks : & [ StacksPrivateKey ] ,
1332
- btc_regtest_controller : & mut BitcoinRegtestController ,
1332
+ btc_regtest_controller : & BitcoinRegtestController ,
1333
1333
num_stacking_cycles : Option < u64 > ,
1334
1334
) {
1335
1335
setup_epoch_3_reward_set (
@@ -1374,7 +1374,7 @@ pub fn boot_to_epoch_3_reward_set_calculation_boundary(
1374
1374
pub fn boot_to_epoch_25 (
1375
1375
naka_conf : & Config ,
1376
1376
blocks_processed : & Arc < AtomicU64 > ,
1377
- btc_regtest_controller : & mut BitcoinRegtestController ,
1377
+ btc_regtest_controller : & BitcoinRegtestController ,
1378
1378
) {
1379
1379
let epochs = naka_conf. burnchain . epochs . clone ( ) . unwrap ( ) ;
1380
1380
let epoch_25 = & epochs[ StacksEpochId :: Epoch25 ] ;
@@ -1417,7 +1417,7 @@ pub fn boot_to_epoch_3_reward_set(
1417
1417
blocks_processed : & Arc < AtomicU64 > ,
1418
1418
stacker_sks : & [ StacksPrivateKey ] ,
1419
1419
signer_sks : & [ StacksPrivateKey ] ,
1420
- btc_regtest_controller : & mut BitcoinRegtestController ,
1420
+ btc_regtest_controller : & BitcoinRegtestController ,
1421
1421
num_stacking_cycles : Option < u64 > ,
1422
1422
) {
1423
1423
boot_to_epoch_3_reward_set_calculation_boundary (
@@ -9156,7 +9156,7 @@ fn utxo_check_on_startup_panic() {
9156
9156
btcd_controller
9157
9157
. start_bitcoind ( )
9158
9158
. expect ( "Failed starting bitcoind" ) ;
9159
- let mut btc_regtest_controller = BitcoinRegtestController :: new ( naka_conf. clone ( ) , None ) ;
9159
+ let btc_regtest_controller = BitcoinRegtestController :: new ( naka_conf. clone ( ) , None ) ;
9160
9160
// Do not fully bootstrap the chain, so that the UTXOs are not yet available
9161
9161
btc_regtest_controller. bootstrap_chain ( 99 ) ;
9162
9162
@@ -9232,7 +9232,7 @@ fn utxo_check_on_startup_recover() {
9232
9232
btcd_controller
9233
9233
. start_bitcoind ( )
9234
9234
. expect ( "Failed starting bitcoind" ) ;
9235
- let mut btc_regtest_controller = BitcoinRegtestController :: new ( naka_conf. clone ( ) , None ) ;
9235
+ let btc_regtest_controller = BitcoinRegtestController :: new ( naka_conf. clone ( ) , None ) ;
9236
9236
// Do not fully bootstrap the chain, so that the UTXOs are not yet available
9237
9237
btc_regtest_controller. bootstrap_chain ( 99 ) ;
9238
9238
// btc_regtest_controller.bootstrap_chain(108);
@@ -9905,11 +9905,11 @@ fn test_shadow_recovery() {
9905
9905
return ;
9906
9906
}
9907
9907
9908
- let mut signer_test: SignerTest < SpawnedSigner > = SignerTest :: new ( 1 , vec ! [ ] ) ;
9908
+ let signer_test: SignerTest < SpawnedSigner > = SignerTest :: new ( 1 , vec ! [ ] ) ;
9909
9909
signer_test. boot_to_epoch_3 ( ) ;
9910
9910
9911
9911
let naka_conf = signer_test. running_nodes . conf . clone ( ) ;
9912
- let btc_regtest_controller = & mut signer_test. running_nodes . btc_regtest_controller ;
9912
+ let btc_regtest_controller = & signer_test. running_nodes . btc_regtest_controller ;
9913
9913
let counters = signer_test. running_nodes . counters . clone ( ) ;
9914
9914
9915
9915
// make another tenure
@@ -10701,7 +10701,7 @@ fn test_tenure_extend_from_flashblocks() {
10701
10701
let deployer_sk = account_keys. pop ( ) . unwrap ( ) ;
10702
10702
let deployer_addr = tests:: to_addr ( & deployer_sk) ;
10703
10703
10704
- let mut signer_test: SignerTest < SpawnedSigner > = SignerTest :: new_with_config_modifications (
10704
+ let signer_test: SignerTest < SpawnedSigner > = SignerTest :: new_with_config_modifications (
10705
10705
1 ,
10706
10706
initial_balances,
10707
10707
|_| { } ,
@@ -10714,7 +10714,7 @@ fn test_tenure_extend_from_flashblocks() {
10714
10714
let naka_conf = signer_test. running_nodes . conf . clone ( ) ;
10715
10715
10716
10716
let http_origin = format ! ( "http://{}" , & naka_conf. node. rpc_bind) ;
10717
- let btc_regtest_controller = & mut signer_test. running_nodes . btc_regtest_controller ;
10717
+ let btc_regtest_controller = & signer_test. running_nodes . btc_regtest_controller ;
10718
10718
let coord_channel = signer_test. running_nodes . coord_channel . clone ( ) ;
10719
10719
let counters = signer_test. running_nodes . counters . clone ( ) ;
10720
10720
0 commit comments