mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 21:08:32 +00:00
Remove snapshot cache related code (#5661)
* Remove snapshot cache and other references. * Fix default state cache size in docs * Remove cache miss comment entirely * Add state cache CLI tests
This commit is contained in:
@@ -4415,12 +4415,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
if cached_head.head_block_root() == parent_block_root {
|
||||
(Cow::Borrowed(head_state), cached_head.head_state_root())
|
||||
} else {
|
||||
info!(
|
||||
self.log,
|
||||
"Missed snapshot cache during withdrawals calculation";
|
||||
"slot" => proposal_slot,
|
||||
"parent_block_root" => ?parent_block_root
|
||||
);
|
||||
let block = self
|
||||
.get_blinded_block(&parent_block_root)?
|
||||
.ok_or(Error::MissingBeaconBlock(parent_block_root))?;
|
||||
|
||||
Reference in New Issue
Block a user