mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 02:01:02 +00:00
Register previous rounds' votes with gossip service on startup (#2676)
* grandpa: register previous round votes with gossip service on startup * gossip: fix tests * grandpa: optionally register previous round votes on startup * grandpa: fix tests
This commit is contained in:
committed by
Arkadiy Paronyan
parent
e2d1d0c951
commit
10c1dfcffb
@@ -101,6 +101,10 @@ impl<Block: BlockT> CompletedRounds<Block> {
|
||||
CompletedRounds { inner }
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item=&CompletedRound<Block>> {
|
||||
self.inner.iter()
|
||||
}
|
||||
|
||||
/// Returns the last (latest) completed round.
|
||||
pub fn last(&self) -> &CompletedRound<Block> {
|
||||
self.inner.back()
|
||||
|
||||
Reference in New Issue
Block a user