Save fetching state for blobs pruning

This commit is contained in:
Emilia Hane
2023-01-13 22:09:15 +01:00
parent 6f5ca02ac9
commit a2b8c6ee69
3 changed files with 32 additions and 29 deletions

View File

@@ -612,10 +612,10 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
start_slot,
end_slot,
|| {
(
Ok((
head.beacon_state.clone_with_only_committee_caches(),
head.beacon_block_root,
)
))
},
&self.spec,
)?;
@@ -709,10 +709,10 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
start_slot,
end_slot,
|| {
(
Ok((
head.beacon_state.clone_with_only_committee_caches(),
head.beacon_state_root(),
)
))
},
&self.spec,
)?;