mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
ValidationNetwork expose more functionality (#301)
* Expose `collator_id_to_peer_id` * `ValidationNetwork` expose `checked_statements` * Style nit
This commit is contained in:
@@ -460,6 +460,11 @@ impl PolkadotProtocol {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Convert the given `CollatorId` to a `PeerId`.
|
||||
pub fn collator_id_to_peer_id(&self, collator_id: &CollatorId) -> Option<&PeerId> {
|
||||
self.collators.collator_id_to_peer_id(collator_id)
|
||||
}
|
||||
}
|
||||
|
||||
impl Specialization<Block> for PolkadotProtocol {
|
||||
|
||||
Reference in New Issue
Block a user