Skip to content

Commit

Permalink
Update bootnodes and telemetry (#992)
Browse files Browse the repository at this point in the history
* Update bootnodes and telemetry

* Clippy

* Format

* Fix compile
  • Loading branch information
aurexav authored Mar 9, 2023
1 parent d778d07 commit 5ca9e8d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 9 deletions.
7 changes: 5 additions & 2 deletions node/src/chain_spec/crab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use fp_evm::GenesisAccount;
// substrate
use sc_chain_spec::Properties;
use sc_service::ChainType;
use sc_telemetry::TelemetryEndpoints;
use sp_core::{crypto::UncheckedInto, H160};

/// Specialized `ChainSpec` for the normal parachain runtime.
Expand Down Expand Up @@ -265,8 +266,10 @@ pub fn genesis_config() -> ChainSpec {
darwinia_fee_market: Default::default(),
}
},
Vec::new(),
None,
vec![
"/dns/g1.crab2.darwinia.network/tcp/30333/ws/p2p/12D3KooWEDiHG6pjt53HqnfYepnLzp9rFTh8MJrBX7AZeGShBMM4".parse().unwrap()
],
TelemetryEndpoints::new(vec![(TELEMETRY_URL.into(), 0)]).ok(),
Some(PROTOCOL_ID),
None,
Some(properties()),
Expand Down
3 changes: 2 additions & 1 deletion node/src/chain_spec/darwinia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use fp_evm::GenesisAccount;
// substrate
use sc_chain_spec::Properties;
use sc_service::ChainType;
use sc_telemetry::TelemetryEndpoints;
use sp_core::H160;

/// Specialized `ChainSpec` for the normal parachain runtime.
Expand Down Expand Up @@ -225,7 +226,7 @@ pub fn genesis_config() -> ChainSpec {
}
},
Vec::new(),
None,
TelemetryEndpoints::new(vec![(TELEMETRY_URL.into(), 0)]).ok(),
Some(PROTOCOL_ID),
None,
Some(properties()),
Expand Down
2 changes: 2 additions & 0 deletions node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ use sp_core::{Pair, Public};
#[allow(unused)]
pub type DummyChainSpec = sc_chain_spec::GenericChainSpec<(), Extensions>;

const TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit";

const ALITH: &str = "0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac";
const BALTATHAR: &str = "0x3Cd0A705a2DC65e5b1E1205896BaA2be8A07c6e0";
const CHARLETH: &str = "0x798d4Ba9baf0064Ec19eB4F0a1a45785ae9D6DFc";
Expand Down
7 changes: 5 additions & 2 deletions node/src/chain_spec/pangolin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use fp_evm::GenesisAccount;
// substrate
use sc_chain_spec::Properties;
use sc_service::ChainType;
use sc_telemetry::TelemetryEndpoints;
use sp_core::{crypto::UncheckedInto, H160};

/// Specialized `ChainSpec` for the normal parachain runtime.
Expand Down Expand Up @@ -249,8 +250,10 @@ pub fn genesis_config() -> ChainSpec {
pangoro_fee_market: Default::default(),
}
},
Vec::new(),
None,
vec![
"/dns4/g1.pangolin2.darwinia.network/tcp/30333/p2p/12D3KooWLjJE7oNzQrEM26vUZ1uKuNYhvqjYrEATt1RdoAMTnvL9".parse().unwrap()
],
TelemetryEndpoints::new(vec![(TELEMETRY_URL.into(), 0)]).ok(),
Some(PROTOCOL_ID),
None,
Some(properties()),
Expand Down
7 changes: 5 additions & 2 deletions node/src/chain_spec/pangoro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use fp_evm::GenesisAccount;
// substrate
use sc_chain_spec::Properties;
use sc_service::ChainType;
use sc_telemetry::TelemetryEndpoints;
use sp_core::{crypto::UncheckedInto, H160};

/// Specialized `ChainSpec` for the normal parachain runtime.
Expand Down Expand Up @@ -249,8 +250,10 @@ pub fn genesis_config() -> ChainSpec {
pangolin_fee_market: Default::default(),
}
},
Vec::new(),
None,
vec![
"/dns/g1.pangoro2.darwinia.network/tcp/30333/p2p/12D3KooWLqL8BDJj1X27wWNefSULFnaaVqTacBngZJjVuGqVUEpC".parse().unwrap()
],
TelemetryEndpoints::new(vec![(TELEMETRY_URL.into(), 0)]).ok(),
Some(PROTOCOL_ID),
None,
Some(properties()),
Expand Down
2 changes: 1 addition & 1 deletion precompile/bls12-381/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ impl<Runtime: pallet_evm::Config> BLS12381<Runtime> {
_message: UnboundedBytes,
_signature: UnboundedBytes,
) -> EvmResult<bool> {
return Err(revert("Unavailable now"));
Err(revert("Unavailable now"))
}
}
2 changes: 1 addition & 1 deletion runtime/common/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ macro_rules! impl_evm_tests {
() => {
mod evm {
// darwinia
use crate::mock::{Runtime, WeightPerGas};
use super::mock::*;

#[test]
fn configured_base_extrinsic_weight_is_evm_compatible() {
Expand Down

0 comments on commit 5ca9e8d

Please sign in to comment.