From 935737b6c84b13a1be721f337bcfa6d19183f6e0 Mon Sep 17 00:00:00 2001 From: Peter White Date: Sat, 11 May 2024 11:20:10 -0600 Subject: [PATCH] chore: update comment --- node/src/chain_spec.rs | 2 +- node/src/command.rs | 2 +- runtime/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 7bdac3c..bc47274 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -1,6 +1,6 @@ use cumulus_primitives_core::ParaId; -use parachain_template_runtime as runtime; use hex_literal::hex; +use parachain_template_runtime as runtime; use runtime::{AccountId, AuraId, Signature, EXISTENTIAL_DEPOSIT}; use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup}; use sc_service::ChainType; diff --git a/node/src/command.rs b/node/src/command.rs index 2d78f8d..52604a3 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -3,8 +3,8 @@ use std::net::SocketAddr; use cumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions; use cumulus_primitives_core::ParaId; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; -use parachain_template_runtime::Block; use log::info; +use parachain_template_runtime::Block; use sc_cli::{ ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams, NetworkParams, Result, SharedParams, SubstrateCli, diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 24a120c..0212ed3 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -364,7 +364,7 @@ impl> FindAuthor for FindAuthorTruncated { /// Current approximation of the gas/s consumption considering /// EVM execution over compiled WASM (on 4.4Ghz CPU). -/// Given the 500ms Weight, from which 75% only are used for transactions, +/// Calculated with a conservative 500ms Weight, not accounting for async backing. /// the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 15_000_000. /// src: https://github.com/moonbeam-foundation/moonbeam/blob/master/runtime/moonbeam/src/lib.rs#L378 /// Note: this is a conservative estimate considering async backing is enabled.