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:
Maciej Hirsz
2019-12-06 13:50:30 +01:00
committed by GitHub
parent f2fc89e374
commit 92fb9d28de
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -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
}