mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-25 03:37:58 +00:00
Set block timestamp when reseting stale nodes (#209)
* fix: Prevent stale nodes from updating chain head * Set block timestamp when reseting stale nodes
This commit is contained in:
@@ -74,6 +74,10 @@ impl Node {
|
||||
&self.best.block
|
||||
}
|
||||
|
||||
pub fn best_timestamp(&self) -> u64 {
|
||||
self.best.block_timestamp
|
||||
}
|
||||
|
||||
pub fn finalized(&self) -> &Block {
|
||||
&self.finalized
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user