Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
José Molina committed Dec 4, 2023
1 parent a7bebd3 commit eaece84
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 287 deletions.
10 changes: 2 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ sp-version = { version = "26.0.0", default-features = false }
sp-weights = { version = "24.0.0", default-features = false }

# Build Dependencies
substrate-build-script-utils = "8.0.0"
substrate-build-script-utils = "9.0.0"
substrate-wasm-builder = "14.0.0"

## Substrate FRAME Dependencies
Expand Down Expand Up @@ -197,4 +197,3 @@ nix = "0.26"
tempfile = "3.7"
tokio = { version = "1.29", features = ["macros", "time", "parking_lot"] }
wait-timeout = "0.2"
pallet-remark = { version = "25.0.0", default-features = false }
1 change: 1 addition & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ polkadot-cli = { workspace = true }
default = ["trappist-runtime", "stout-runtime"]
runtime-benchmarks = [
"trappist-runtime/runtime-benchmarks",
"frame-benchmarking-cli/runtime-benchmarks",
"stout-runtime/runtime-benchmarks",
"polkadot-cli/runtime-benchmarks"
]
Expand Down
143 changes: 0 additions & 143 deletions pallets/lockdown-mode/src/mock.rs

This file was deleted.

102 changes: 0 additions & 102 deletions pallets/lockdown-mode/src/tests.rs

This file was deleted.

1 change: 1 addition & 0 deletions runtime/stout/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ std = [
"cumulus-primitives-timestamp/std",
"cumulus-primitives-utility/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-session-benchmarking/std",
"parachain-info/std",
"parachains-common/std",
"polkadot-parachain-primitives/std",
Expand Down
25 changes: 14 additions & 11 deletions runtime/stout/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,17 @@ parameter_types! {
pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
}

/// Maximum number of blocks simultaneously accepted by the Runtime, not yet included
/// into the relay chain.
const UNINCLUDED_SEGMENT_CAPACITY: u32 = 1;
/// How many parachain blocks are processed by the relay chain per parent. Limits the
/// number of blocks authored per slot.
const BLOCK_PROCESSING_VELOCITY: u32 = 1;
/// Relay chain slot duration, in milliseconds.
const RELAY_CHAIN_SLOT_DURATION_MILLIS: u32 = 6000;
#[cfg(feature = "parameterized-consensus-hook")]
mod consensus_hook_constants {
/// Maximum number of blocks simultaneously accepted by the Runtime, not yet included
/// into the relay chain.
pub const UNINCLUDED_SEGMENT_CAPACITY: u32 = 1;
/// How many parachain blocks are processed by the relay chain per parent. Limits the
/// number of blocks authored per slot.
pub const BLOCK_PROCESSING_VELOCITY: u32 = 1;
/// Relay chain slot duration, in milliseconds.
pub const RELAY_CHAIN_SLOT_DURATION_MILLIS: u32 = 6000;
}

impl cumulus_pallet_parachain_system::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
Expand All @@ -309,9 +312,9 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
#[cfg(feature = "parameterized-consensus-hook")]
type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PROCESSING_VELOCITY,
UNINCLUDED_SEGMENT_CAPACITY,
consensus_hook_constants::RELAY_CHAIN_SLOT_DURATION_MILLIS,
consensus_hook_constants::BLOCK_PROCESSING_VELOCITY,
consensus_hook_constants::UNINCLUDED_SEGMENT_CAPACITY,
>;
}

Expand Down
2 changes: 2 additions & 0 deletions runtime/trappist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ std = [
"frame-system/std",
"frame-system-rpc-runtime-api/std",
"frame-try-runtime/std",
"frame-system-benchmarking/std",
"pallet-assets/std",
"pallet-asset-tx-payment/std",
"pallet-aura/std",
Expand Down Expand Up @@ -186,6 +187,7 @@ std = [
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"trappist-runtime-benchmarks/std",
]
runtime-benchmarks = [
"hex-literal",
Expand Down
1 change: 0 additions & 1 deletion runtime/trappist/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
//! Auxiliary struct/enums for parachain runtimes.
//! Taken from polkadot/runtime/common (at a21cd64) and adapted for parachains.
use cumulus_primitives_core::DmpMessageHandler;
use frame_support::traits::{Currency, Imbalance, OnUnbalanced};
pub use log;
use sp_std::marker::PhantomData;
Expand Down
Loading

0 comments on commit eaece84

Please sign in to comment.