From 85b78095333cc9b767e4618e4f3457abe46e4a5e Mon Sep 17 00:00:00 2001 From: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Date: Thu, 19 Mar 2020 17:10:43 +0100 Subject: [PATCH] Force Kusama CC3 nodes into Kusama chain (#235) --- backend/src/node/connector.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/backend/src/node/connector.rs b/backend/src/node/connector.rs index 52e49b8..d846aa1 100644 --- a/backend/src/node/connector.rs +++ b/backend/src/node/connector.rs @@ -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 {