mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Substrate companion: Authority discovery multiple peer ids (#4295)
* Substrate companion: Authority discovery multiple peer ids Authority discovery before had a fixed mapping from `PeerId` to `AuthorityId`. This wasn't correct, as a `PeerId` can actually map to multiple `AuthorityId`s. The linked Substrate pr fixes this. https://github.com/paritytech/substrate/pull/10259 * Update node/network/availability-distribution/src/requester/mod.rs * Update node/network/collator-protocol/src/validator_side/mod.rs * Update node/network/statement-distribution/src/tests.rs * Update guide * Adapt to Substrate pr * Update Substrate
This commit is contained in:
@@ -355,7 +355,7 @@ pub enum NetworkBridgeMessage {
|
||||
/// connected to.
|
||||
ConnectToResolvedValidators {
|
||||
/// Each entry corresponds to the addresses of an already resolved validator.
|
||||
validator_addrs: Vec<Vec<Multiaddr>>,
|
||||
validator_addrs: Vec<HashSet<Multiaddr>>,
|
||||
/// The peer set we want the connection on.
|
||||
peer_set: PeerSet,
|
||||
},
|
||||
|
||||
@@ -25,7 +25,7 @@ use polkadot_primitives::v1::AuthorityDiscoveryId;
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum NetworkBridgeEvent<M> {
|
||||
/// A peer has connected.
|
||||
PeerConnected(PeerId, ObservedRole, Option<AuthorityDiscoveryId>),
|
||||
PeerConnected(PeerId, ObservedRole, Option<HashSet<AuthorityDiscoveryId>>),
|
||||
|
||||
/// A peer has disconnected.
|
||||
PeerDisconnected(PeerId),
|
||||
|
||||
Reference in New Issue
Block a user