Skip to content

Commit e1f81ce

Browse files
committed
test
1 parent beefb92 commit e1f81ce

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

beacon_node/beacon_chain/tests/store_tests.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ type E = MinimalEthSpec;
4747
type TestHarness = BeaconChainHarness<DiskHarnessType<E>>;
4848

4949
fn get_store(db_path: &TempDir) -> Arc<HotColdDB<E, LevelDB<E>, LevelDB<E>>> {
50-
get_store_generic(db_path, StoreConfig::default(), test_spec::<E>())
50+
let store_config = StoreConfig {
51+
prune_payloads: false,
52+
..StoreConfig::default()
53+
};
54+
get_store_generic(db_path, store_config, test_spec::<E>())
5155
}
5256

5357
fn get_store_generic(
@@ -2471,15 +2475,12 @@ async fn weak_subjectivity_sync_test(slots: Vec<Slot>, checkpoint_slot: Slot) {
24712475
.map(|s| s.beacon_block.clone())
24722476
.collect::<Vec<_>>();
24732477

2474-
// If prune_payloads is false, the execution payload should exist in historical blocks
2475-
if !beacon_chain.store.get_config().prune_payloads {
2476-
for block in &historical_blocks {
2477-
let block_root = block.canonical_root();
2478-
assert!(beacon_chain
2479-
.store
2480-
.execution_payload_exists(&block_root)
2481-
.unwrap());
2482-
}
2478+
for block in &historical_blocks {
2479+
let block_root = block.canonical_root();
2480+
assert!(beacon_chain
2481+
.store
2482+
.execution_payload_exists(&block_root)
2483+
.unwrap());
24832484
}
24842485

24852486
let mut available_blocks = vec![];

0 commit comments

Comments
 (0)