mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-08 18:50:05 +00:00
Complete backfill restart
This commit is contained in:
@@ -177,6 +177,20 @@ impl AnchorInfo {
|
||||
pub fn full_state_pruning_enabled(&self) -> bool {
|
||||
self.state_lower_limit == 0 && self.state_upper_limit == STATE_UPPER_LIMIT_NO_RETAIN
|
||||
}
|
||||
|
||||
pub fn as_increased_oldest_block(
|
||||
&self,
|
||||
oldest_block_slot: Slot,
|
||||
oldest_block_parent: Hash256,
|
||||
) -> Self {
|
||||
Self {
|
||||
anchor_slot: self.anchor_slot,
|
||||
oldest_block_slot,
|
||||
oldest_block_parent,
|
||||
state_upper_limit: self.state_upper_limit,
|
||||
state_lower_limit: self.state_lower_limit,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl StoreItem for AnchorInfo {
|
||||
|
||||
Reference in New Issue
Block a user