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:
Tyera Eulberg
2020-07-23 11:44:57 -06:00
committed by GitHub
parent b60ff70657
commit b5a6a2f461
3 changed files with 10 additions and 1 deletions

View File

@ -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)]