Skip to content

Commit beefb92

Browse files
committed
Add test
1 parent 2e2efa6 commit beefb92

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

beacon_node/beacon_chain/tests/store_tests.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,6 +2471,17 @@ async fn weak_subjectivity_sync_test(slots: Vec<Slot>, checkpoint_slot: Slot) {
24712471
.map(|s| s.beacon_block.clone())
24722472
.collect::<Vec<_>>();
24732473

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+
}
2483+
}
2484+
24742485
let mut available_blocks = vec![];
24752486
for blinded in historical_blocks {
24762487
let block_root = blinded.canonical_root();

0 commit comments

Comments
 (0)