Set the correct root in block commitment cache initialization (#22750)
* Set the correct root in block commitment cache initialization * clean up test * bump
This commit is contained in:
@@ -193,9 +193,9 @@ impl BlockCommitmentCache {
|
||||
self.commitment_slots.highest_confirmed_root = root;
|
||||
}
|
||||
|
||||
pub fn initialize_slots(&mut self, slot: Slot) {
|
||||
pub fn initialize_slots(&mut self, slot: Slot, root: Slot) {
|
||||
self.commitment_slots.slot = slot;
|
||||
self.commitment_slots.root = slot;
|
||||
self.commitment_slots.root = root;
|
||||
}
|
||||
|
||||
pub fn set_all_slots(&mut self, slot: Slot, root: Slot) {
|
||||
|
Reference in New Issue
Block a user