Skip to content

Commit

Permalink
Merge pull request #11 from KasarLabs/fix/telemetry
Browse files Browse the repository at this point in the history
Fix/telemetry
  • Loading branch information
antiyro authored Mar 8, 2024
2 parents 61d9874 + 38c156d commit c8b20d4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 12 deletions.
3 changes: 1 addition & 2 deletions crates/client/sync/src/utils/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ async fn commitments(
fn chain_id() -> mp_felt::Felt252Wrapper {
match get_config() {
Ok(config) => config.chain_id.into(),
Err(e) => {
log::error!("Failed to get chain id: {}", e);
Err(_) => {
FieldElement::from_byte_slice_be(b"").unwrap().into()
}
}
Expand Down
3 changes: 1 addition & 2 deletions crates/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[package]
authors = [
"KSS <@keep-starknet-strange>",
"Kasar <@kasarLabs>",
"Substrate @substrate-developer-hub",
"KSS <@keep-starknet-strange>",
]
build = "build.rs"
description = "Deoxys node."
Expand Down
2 changes: 0 additions & 2 deletions crates/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ pub fn deoxys_config(sealing: SealingMode, chain_id: &str) -> Result<DevChainSpe
chain_id,
ChainType::Development,
move || {
log::info!("🔃 Loading Deoxys config");

DevGenesisExt {
genesis_config: testnet_genesis(
genesis_loader.clone(),
Expand Down
6 changes: 3 additions & 3 deletions crates/node/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ fn override_dev_environment(cmd: &mut ExtendedRunCmd) {
fn deoxys_environment(cmd: &mut ExtendedRunCmd) {
// Set the blockchain network to 'starknet'
cmd.base.shared_params.chain = Some("starknet".to_string());
cmd.base.shared_params.base_path = Some(PathBuf::from("../db_deoxys"));
cmd.base.shared_params.base_path = Some(PathBuf::from("/tmp/deoxys"));

// Assign a random pokemon name at each startup
cmd.base.name = Some(
Expand All @@ -235,8 +235,8 @@ fn deoxys_environment(cmd: &mut ExtendedRunCmd) {
),
);

// Define telemetry endpoints at deoxys.kasar.io
cmd.base.telemetry_params.telemetry_endpoints = vec![("wss://deoxys.kasar.io/submit/".to_string(), 0)];
// Define telemetry endpoints at starknodes.com
cmd.base.telemetry_params.telemetry_endpoints = vec![("wss://starknodes.com/submit/".to_string(), 0)];

// Enables authoring and manual sealing for custom block production
cmd.base.force_authoring = true;
Expand Down
2 changes: 0 additions & 2 deletions crates/node/src/genesis_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::marker::PhantomData;
use std::sync::Arc;

use mp_digest_log::{Log, MADARA_ENGINE_ID};
use mp_hashers::pedersen::PedersenHasher;
use sc_client_api::backend::Backend;
use sc_client_api::BlockImportOperation;
use sc_executor::RuntimeVersionOf;
Expand Down Expand Up @@ -72,7 +71,6 @@ fn construct_genesis_block<Block: BlockT>(
// Load first block from genesis folders
// TODO remove unecessary code from madara for genesis build
let digest = vec![DigestItem::Consensus(MADARA_ENGINE_ID, Log::Block(genesis_block.clone()).encode())];
log::info!("🌱 Genesis block imported correctly {:?}", genesis_block.header().hash::<PedersenHasher>());

Block::new(
<<Block as BlockT>::Header as HeaderT>::new(
Expand Down
1 change: 0 additions & 1 deletion crates/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ pub fn new_full(

network_starter.start_network();

log::info!("Manual Seal Ready");
return Ok(task_manager);
}

Expand Down

0 comments on commit c8b20d4

Please sign in to comment.