Skip to content

Commit

Permalink
Report testnet info to polkadot telemetry (paritytech#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu authored Nov 6, 2020
1 parent e13a2b8 commit 5305929
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cli/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use chainx_runtime::{
use crate::genesis::bitcoin::{BtcGenesisParams, BtcTrusteeParams};

// Note this is the URL for the telemetry server
//const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
const POLKADOT_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
const CHAINX_TELEMETRY_URL: &str = "ws://stats.chainx.org:1024/submit/";

/// Node `ChainSpec` extensions.
Expand Down Expand Up @@ -542,7 +542,13 @@ pub fn testnet_config() -> Result<ChainSpec, String> {
"/dns/p2p.testnet-2.chainx.org/tcp/30334/p2p/12D3KooWNKCPciz7iAJ6DBqSygsfzHCVdoMCMWoBgo1EgHMrTpDN",
"/dns/p2p.testnet-3.chainx.org/tcp/30335/p2p/12D3KooWLuxACVFoeddQ4ja68C7Y4qNrXtpBC9gx7akRPacnvoJe",
],
Some(TelemetryEndpoints::new(vec![(CHAINX_TELEMETRY_URL.to_string(), 0)]).expect("Testnet telemetry url is valid; qed")),
Some(
TelemetryEndpoints::new(vec![
(CHAINX_TELEMETRY_URL.to_string(), 0),
(POLKADOT_TELEMETRY_URL.to_string(), 0),
])
.expect("Testnet telemetry url is valid; qed"),
),
Some("chainx-testnet"),
Some(as_properties(NetworkType::Testnet)),
Default::default(),
Expand Down

0 comments on commit 5305929

Please sign in to comment.