22// SPDX-License-Identifier: Apache-2.0, MIT
33use crate :: blocks:: { ElectionProof , Ticket , Tipset } ;
44use crate :: chain:: ChainStore ;
5- use crate :: chain_sync:: SyncConfig ;
65use crate :: db:: car:: ManyCar ;
76use crate :: eth:: { EthChainId as EthChainIdType , SAFE_EPOCH_DELAY } ;
87use crate :: lotus_json:: HasLotusJson ;
@@ -53,7 +52,7 @@ use serde::de::DeserializeOwned;
5352use serde:: { Deserialize , Serialize } ;
5453use serde_json:: Value ;
5554use similar:: { ChangeTag , TextDiff } ;
56- use std:: { borrow:: Cow , path:: Path , path :: PathBuf , str:: FromStr , sync:: Arc , time:: Duration } ;
55+ use std:: { borrow:: Cow , path:: PathBuf , str:: FromStr , sync:: Arc , time:: Duration } ;
5756use tabled:: { builder:: Builder , settings:: Style } ;
5857use tokio:: sync:: Semaphore ;
5958use tracing:: debug;
@@ -1933,7 +1932,6 @@ pub(super) async fn create_tests(
19331932 tests. extend ( f3_tests ( ) ?) ;
19341933 if !snapshot_files. is_empty ( ) {
19351934 let store = Arc :: new ( ManyCar :: try_from ( snapshot_files) ?) ;
1936- dbg ! ( & n_tipsets) ;
19371935 revalidate_chain ( store. clone ( ) , n_tipsets) . await ?;
19381936 tests. extend ( snapshot_tests (
19391937 store,
@@ -1949,9 +1947,8 @@ pub(super) async fn create_tests(
19491947async fn revalidate_chain ( db : Arc < ManyCar > , n_ts_to_validate : usize ) -> anyhow:: Result < ( ) > {
19501948 let chain_config = Arc :: new ( handle_chain_config ( & NetworkChain :: Calibnet ) ?) ;
19511949
1952- let genesis: Option < & Path > = None ;
19531950 let genesis_header = crate :: genesis:: read_genesis_header (
1954- genesis . as_deref ( ) ,
1951+ None ,
19551952 chain_config. genesis_bytes ( & db) . await ?. as_deref ( ) ,
19561953 & db,
19571954 )
0 commit comments