Initialize BlockCommitmentCache slot and root on node boot (#11178)
* Initialize commitment-cache slot and root on node boot * Ignore long tests
This commit is contained in:
@ -187,6 +187,11 @@ impl BlockCommitmentCache {
|
||||
pub fn set_highest_confirmed_root(&mut self, root: Slot) {
|
||||
self.commitment_slots.highest_confirmed_root = root;
|
||||
}
|
||||
|
||||
pub fn initialize_slots(&mut self, slot: Slot) {
|
||||
self.commitment_slots.slot = slot;
|
||||
self.commitment_slots.root = slot;
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Clone, Copy)]
|
||||
|
Reference in New Issue
Block a user