diff --git a/node/src/chain_spec/mod.rs b/node/src/chain_spec/mod.rs index 013a0a48..eeda5a17 100644 --- a/node/src/chain_spec/mod.rs +++ b/node/src/chain_spec/mod.rs @@ -54,7 +54,8 @@ type AccountPublic = ::Signer; /// Generate collator keys from seed. /// -/// This function's return type must always match the session keys of the chain in tuple format. +/// This function's return type must always match the session keys of the chain +/// in tuple format. pub fn get_collator_keys_from_seed(seed: &str) -> ::Public { get_from_seed::(seed) } diff --git a/node/src/command.rs b/node/src/command.rs index 84d0f246..a7d212ab 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -98,7 +98,7 @@ impl Default for Runtime { enum Runtime { #[cfg(feature = "kreivo-runtime")] #[default] - Kreivo + Kreivo, } impl From<&str> for Runtime { diff --git a/runtime/kreivo/src/lib.rs b/runtime/kreivo/src/lib.rs index c8f778d0..ca22d9cb 100644 --- a/runtime/kreivo/src/lib.rs +++ b/runtime/kreivo/src/lib.rs @@ -324,7 +324,8 @@ impl pallet_message_queue::Config for Runtime { RuntimeCall, >; type Size = u32; - // The XCMP queue pallet is only ever able to handle the `Sibling(ParaId)` origin: + // The XCMP queue pallet is only ever able to handle the `Sibling(ParaId)` + // origin: type QueueChangeHandler = NarrowOriginToSibling; type QueuePausedQuery = NarrowOriginToSibling; type HeapSize = sp_core::ConstU32<{ 64 * 1024 }>; diff --git a/runtime/kusama-runtime-constants/src/lib.rs b/runtime/kusama-runtime-constants/src/lib.rs index 0562d88f..32315d7e 100644 --- a/runtime/kusama-runtime-constants/src/lib.rs +++ b/runtime/kusama-runtime-constants/src/lib.rs @@ -50,10 +50,10 @@ pub mod time { pub const DAYS: BlockNumber = HOURS * 24; pub const WEEKS: BlockNumber = DAYS * 7; - // 1 in 4 blocks (on average, not counting collisions) will be primary babe blocks. - // The choice of is done in accordance to the slot duration and expected target - // block time, for safely resisting network delays of maximum two seconds. - // + // 1 in 4 blocks (on average, not counting collisions) will be primary babe + // blocks. The choice of is done in accordance to the slot duration and expected + // target block time, for safely resisting network delays of maximum two + // seconds. pub const PRIMARY_PROBABILITY: (u64, u64) = (1, 4); } @@ -68,21 +68,24 @@ pub mod fee { /// The block saturation level. Fees will be updates based on this value. pub const TARGET_BLOCK_FULLNESS: Perbill = Perbill::from_percent(25); - /// Handles converting a weight scalar to a fee value, based on the scale and granularity of the - /// node's balance type. + /// Handles converting a weight scalar to a fee value, based on the scale + /// and granularity of the node's balance type. /// /// This should typically create a mapping between the following ranges: /// - [0, `MAXIMUM_BLOCK_WEIGHT`] /// - [Balance::min, Balance::max] /// - /// Yet, it can be used for any other sort of change to weight-fee. Some examples being: + /// Yet, it can be used for any other sort of change to weight-fee. Some + /// examples being: /// - Setting it to `0` will essentially disable the weight fee. - /// - Setting it to `1` will cause the literal `#[weight = x]` values to be charged. + /// - Setting it to `1` will cause the literal `#[weight = x]` values to + /// be charged. pub struct WeightToFee; impl WeightToFeePolynomial for WeightToFee { type Balance = Balance; fn polynomial() -> WeightToFeeCoefficients { - // in Kusama, extrinsic base weight (smallest non-zero weight) is mapped to 1/10 CENT: + // in Kusama, extrinsic base weight (smallest non-zero weight) is mapped to 1/10 + // CENT: let p = super::currency::CENTS; let q = 10 * Balance::from(ExtrinsicBaseWeight::get().ref_time()); smallvec![WeightToFeeCoefficient { @@ -144,7 +147,8 @@ mod tests { } #[test] - // This function tests that the fee for `ExtrinsicBaseWeight` of weight is correct + // This function tests that the fee for `ExtrinsicBaseWeight` of weight is + // correct fn extrinsic_base_fee_is_correct() { // `ExtrinsicBaseWeight` should cost 1/10 of a CENT println!("Base: {}", ExtrinsicBaseWeight::get()); diff --git a/runtime/kusama-runtime-constants/src/weights/block_weights.rs b/runtime/kusama-runtime-constants/src/weights/block_weights.rs index 8423e1f8..cbbd207c 100644 --- a/runtime/kusama-runtime-constants/src/weights/block_weights.rs +++ b/runtime/kusama-runtime-constants/src/weights/block_weights.rs @@ -14,9 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Polkadot. If not, see . -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-19 (Y/M/D) -//! HOSTNAME: `runner-e8ezs4ez-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION +//! 4.0.0-dev DATE: 2023-06-19 (Y/M/D) +//! HOSTNAME: `runner-e8ezs4ez-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) +//! CPU @ 2.60GHz` //! //! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Development` //! WARMUPS: `10`, REPEAT: `100` diff --git a/runtime/kusama-runtime-constants/src/weights/extrinsic_weights.rs b/runtime/kusama-runtime-constants/src/weights/extrinsic_weights.rs index 6a2fb7dd..61c2ccd7 100644 --- a/runtime/kusama-runtime-constants/src/weights/extrinsic_weights.rs +++ b/runtime/kusama-runtime-constants/src/weights/extrinsic_weights.rs @@ -14,9 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Polkadot. If not, see . -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-19 (Y/M/D) -//! HOSTNAME: `runner-e8ezs4ez-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION +//! 4.0.0-dev DATE: 2023-06-19 (Y/M/D) +//! HOSTNAME: `runner-e8ezs4ez-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) +//! CPU @ 2.60GHz` //! //! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Development` //! WARMUPS: `10`, REPEAT: `100`