Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mo cleanin
  • Loading branch information
emostov committed Jul 19, 2021
commit 8c9c736db2e2ce9d756257c9d38c2cc9e2dce2fc
3 changes: 1 addition & 2 deletions frame/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
#![recursion_limit = "128"]
#![cfg_attr(not(feature = "std"), no_std)]

#[cfg(test)]
#[cfg(any(test, feature = "make-bags"))]
mod mock;
#[cfg(test)]
mod tests;
Expand All @@ -283,7 +283,6 @@ pub mod testing_utils;
#[cfg(any(feature = "runtime-benchmarks", test))]
pub mod benchmarking;


pub mod inflation;
pub mod slashing;
pub mod voter_bags;
Expand Down
2 changes: 1 addition & 1 deletion frame/staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub fn is_disabled(controller: AccountId) -> bool {
}

type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
pub(crate) type Block = frame_system::mocking::MockBlock<Test>;
type Block = frame_system::mocking::MockBlock<Test>;

frame_support::construct_runtime!(
pub enum Test where
Expand Down
12 changes: 0 additions & 12 deletions utils/frame/remote-externalities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,6 @@ impl<B: BlockT> Builder<B> {
key_values.push((key.clone(), value));
if key_values.len() % (10 * BATCH_SIZE) == 0 {
let ratio: f64 = key_values.len() as f64 / keys_count as f64;
println!( // TODO: figure out how to get logs from remote in test cases
"progress = {:.2} [{} / {}]",
ratio,
key_values.len(),
keys_count,
);
debug!(
target: LOG_TARGET,
"progress = {:.2} [{} / {}]",
Expand Down Expand Up @@ -367,12 +361,6 @@ impl<B: BlockT> Builder<B> {
for f in config.modules.iter() {
let hashed_prefix = StorageKey(twox_128(f.as_bytes()).to_vec());
let module_kv = self.rpc_get_pairs_paged(hashed_prefix.clone(), at).await?;
println!(
"downloaded data for module {} (count: {} / prefix: {:?}).",
f,
module_kv.len(),
HexDisplay::from(&hashed_prefix)
);
info!(
target: LOG_TARGET,
"downloaded data for module {} (count: {} / prefix: {:?}).",
Expand Down