* Set the correct root in block commitment cache initialization
* clean up test
* bump
(cherry picked from commit d9c259a231
)
Co-authored-by: Justin Starry <justin@solana.com>
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