@@ -5,7 +5,6 @@ use std::sync::{mpsc, Arc};
5
5
use std:: time:: { Duration , Instant } ;
6
6
use std:: { cmp, env, fs, io, thread} ;
7
7
8
- use clarity:: consts:: BITCOIN_REGTEST_FIRST_BLOCK_TIMESTAMP ;
9
8
use clarity:: vm:: ast:: stack_depth_checker:: AST_CALL_STACK_DEPTH_BUFFER ;
10
9
use clarity:: vm:: ast:: ASTRules ;
11
10
use clarity:: vm:: costs:: ExecutionCost ;
@@ -39,7 +38,7 @@ use stacks::chainstate::stacks::{
39
38
StacksPublicKey , StacksTransaction , TransactionContractCall , TransactionPayload ,
40
39
} ;
41
40
use stacks:: clarity_cli:: vm_execute as execute;
42
- use stacks:: cli:: { self , StacksChainConfig } ;
41
+ use stacks:: cli;
43
42
use stacks:: codec:: StacksMessageCodec ;
44
43
use stacks:: config:: { EventKeyType , EventObserverConfig , FeeEstimatorName , InitialBalance } ;
45
44
use stacks:: core:: mempool:: MemPoolWalkTxTypes ;
@@ -12691,22 +12690,9 @@ fn mock_miner_replay() {
12691
12690
let blocks_dir = blocks_dir. into_os_string ( ) . into_string ( ) . unwrap ( ) ;
12692
12691
let db_path = format ! ( "{}/neon" , conf. node. working_dir) ;
12693
12692
let args: Vec < String > = vec ! [ "replay-mock-mining" . into( ) , db_path, blocks_dir] ;
12694
- let SortitionDB {
12695
- first_block_height,
12696
- first_burn_header_hash,
12697
- ..
12698
- } = * btc_regtest_controller. sortdb_mut ( ) ;
12699
- let replay_config = StacksChainConfig {
12700
- chain_id : conf. burnchain . chain_id ,
12701
- first_block_height,
12702
- first_burn_header_hash,
12703
- first_burn_header_timestamp : BITCOIN_REGTEST_FIRST_BLOCK_TIMESTAMP . into ( ) ,
12704
- pox_constants : burnchain_config. pox_constants ,
12705
- epochs : conf. burnchain . epochs . expect ( "Missing `epochs` in config" ) ,
12706
- } ;
12707
12693
12708
12694
info ! ( "Replaying mock mined blocks..." ) ;
12709
- cli:: command_replay_mock_mining ( & args, Some ( & replay_config ) ) ;
12695
+ cli:: command_replay_mock_mining ( & args, Some ( & conf ) ) ;
12710
12696
12711
12697
// ---------- Test finished, clean up ----------
12712
12698
0 commit comments