@@ -25,10 +25,11 @@ use std::collections::HashSet;
2525use std:: convert:: TryInto ;
2626use std:: sync:: { Arc , LazyLock } ;
2727use std:: time:: Duration ;
28+ use store:: database:: interface:: BeaconNodeBackend ;
2829use store:: metadata:: { SchemaVersion , CURRENT_SCHEMA_VERSION , STATE_UPPER_LIMIT_NO_RETAIN } ;
2930use store:: {
3031 iter:: { BlockRootsIterator , StateRootsIterator } ,
31- BlobInfo , DBColumn , HotColdDB , LevelDB , StoreConfig ,
32+ BlobInfo , DBColumn , HotColdDB , StoreConfig ,
3233} ;
3334use tempfile:: { tempdir, TempDir } ;
3435use tokio:: time:: sleep;
@@ -46,15 +47,15 @@ static KEYPAIRS: LazyLock<Vec<Keypair>> =
4647type E = MinimalEthSpec ;
4748type TestHarness = BeaconChainHarness < DiskHarnessType < E > > ;
4849
49- fn get_store ( db_path : & TempDir ) -> Arc < HotColdDB < E , LevelDB < E > , LevelDB < E > > > {
50+ fn get_store ( db_path : & TempDir ) -> Arc < HotColdDB < E , BeaconNodeBackend < E > , BeaconNodeBackend < E > > > {
5051 get_store_generic ( db_path, StoreConfig :: default ( ) , test_spec :: < E > ( ) )
5152}
5253
5354fn get_store_generic (
5455 db_path : & TempDir ,
5556 config : StoreConfig ,
5657 spec : ChainSpec ,
57- ) -> Arc < HotColdDB < E , LevelDB < E > , LevelDB < E > > > {
58+ ) -> Arc < HotColdDB < E , BeaconNodeBackend < E > , BeaconNodeBackend < E > > > {
5859 let hot_path = db_path. path ( ) . join ( "chain_db" ) ;
5960 let cold_path = db_path. path ( ) . join ( "freezer_db" ) ;
6061 let blobs_path = db_path. path ( ) . join ( "blobs_db" ) ;
@@ -73,7 +74,7 @@ fn get_store_generic(
7374}
7475
7576fn get_harness (
76- store : Arc < HotColdDB < E , LevelDB < E > , LevelDB < E > > > ,
77+ store : Arc < HotColdDB < E , BeaconNodeBackend < E > , BeaconNodeBackend < E > > > ,
7778 validator_count : usize ,
7879) -> TestHarness {
7980 // Most tests expect to retain historic states, so we use this as the default.
@@ -85,7 +86,7 @@ fn get_harness(
8586}
8687
8788fn get_harness_generic (
88- store : Arc < HotColdDB < E , LevelDB < E > , LevelDB < E > > > ,
89+ store : Arc < HotColdDB < E , BeaconNodeBackend < E > , BeaconNodeBackend < E > > > ,
8990 validator_count : usize ,
9091 chain_config : ChainConfig ,
9192) -> TestHarness {
@@ -244,7 +245,6 @@ async fn full_participation_no_skips() {
244245 AttestationStrategy :: AllValidators ,
245246 )
246247 . await ;
247-
248248 check_finalization ( & harness, num_blocks_produced) ;
249249 check_split_slot ( & harness, store) ;
250250 check_chain_dump ( & harness, num_blocks_produced + 1 ) ;
@@ -3508,7 +3508,10 @@ fn check_finalization(harness: &TestHarness, expected_slot: u64) {
35083508}
35093509
35103510/// Check that the HotColdDB's split_slot is equal to the start slot of the last finalized epoch.
3511- fn check_split_slot ( harness : & TestHarness , store : Arc < HotColdDB < E , LevelDB < E > , LevelDB < E > > > ) {
3511+ fn check_split_slot (
3512+ harness : & TestHarness ,
3513+ store : Arc < HotColdDB < E , BeaconNodeBackend < E > , BeaconNodeBackend < E > > > ,
3514+ ) {
35123515 let split_slot = store. get_split_slot ( ) ;
35133516 assert_eq ! (
35143517 harness
0 commit comments