mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-12 15:51:00 +00:00
Remove broken "Consensus" tab from UI and related code (#434)
* Remove consensus-tab related stuff, and unused messages, from the telemetry backend * also remove AfgAuthoritySet feed message, and handle same from node * Blat everything consensus related that I can find in the UI * cargo fmt * README: had -> has Co-authored-by: David <dvdplm@gmail.com> Co-authored-by: David <dvdplm@gmail.com>
This commit is contained in:
@@ -213,8 +213,13 @@ impl Node {
|
||||
self.stale
|
||||
}
|
||||
|
||||
pub fn set_validator_address(&mut self, addr: Box<str>) {
|
||||
self.details.validator = Some(addr);
|
||||
pub fn set_validator_address(&mut self, addr: Box<str>) -> bool {
|
||||
if self.details.validator.as_ref() == Some(&addr) {
|
||||
false
|
||||
} else {
|
||||
self.details.validator = Some(addr);
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
pub fn startup_time(&self) -> Option<Timestamp> {
|
||||
|
||||
Reference in New Issue
Block a user