mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 20:01:08 +00:00
Fix the failing networking tests (#2904)
This commit is contained in:
committed by
DemiMarie-parity
parent
925a90f57f
commit
de6d541c74
@@ -58,11 +58,15 @@ fn build_nodes<T: CustomMessage + Send + 'static>()
|
||||
let (peerset, _) = peerset::Peerset::from_config(peerset::PeersetConfig {
|
||||
in_peers: 25,
|
||||
out_peers: 25,
|
||||
bootnodes: keypairs
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter_map(|(n, p)| if n != index { Some(p.public().into_peer_id()) } else { None })
|
||||
.collect(),
|
||||
bootnodes: if index == 0 {
|
||||
keypairs
|
||||
.iter()
|
||||
.skip(1)
|
||||
.map(|keypair| keypair.public().into_peer_id())
|
||||
.collect()
|
||||
} else {
|
||||
vec![]
|
||||
},
|
||||
reserved_only: false,
|
||||
reserved_nodes: Vec::new(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user