Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit f96ab5a818
)
Co-authored-by: carllin <wumu727@gmail.com>
This commit is contained in:
@ -187,6 +187,7 @@ impl HeaviestSubtreeForkChoice {
|
|||||||
.expect("new root must exist in fork_infos map")
|
.expect("new root must exist in fork_infos map")
|
||||||
.parent = None;
|
.parent = None;
|
||||||
self.root = new_root;
|
self.root = new_root;
|
||||||
|
self.last_root_time = Instant::now();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn add_root_parent(&mut self, root_parent: Slot) {
|
pub fn add_root_parent(&mut self, root_parent: Slot) {
|
||||||
|
Reference in New Issue
Block a user