mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-29 12:37:59 +00:00
Force Kusama CC3 nodes into Kusama chain (#235)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user