Force Kusama CC3 nodes into Kusama chain (#235)

This commit is contained in:
Maciej Hirsz
2020-03-19 17:10:43 +01:00
committed by GitHub
parent d492b85091
commit 85b7809533
+9 -2
View File
@@ -82,9 +82,16 @@ impl NodeConnector {
}
if let Details::SystemConnected(connected) = msg.details {
let SystemConnected { network_id, node } = connected;
let SystemConnected { network_id: _, mut node } = connected;
let rec = ctx.address().recipient();
let network_id = network_id.map(Into::into);
// FIXME: mergin chains by network_id is not the way to do it.
// This will at least force all CC3 nodes to be aggregated with
// the rest.
let network_id = None; // network_id.map(Into::into);
if &*node.chain == "Kusama CC3" {
node.chain = "Kusama".into();
}
self.aggregator.do_send(AddNode { rec, network_id, node });
} else {