Add {Vote, Tower}::last_voted_slot() (#10734)
This commit is contained in:
@ -54,6 +54,10 @@ impl Vote {
|
||||
timestamp: None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn last_voted_slot(&self) -> Option<Slot> {
|
||||
self.slots.last().copied()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Default, Deserialize, Debug, PartialEq, Eq, Clone)]
|
||||
|
Reference in New Issue
Block a user