Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Parallel key scraping #65

Merged
merged 5 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/rust-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
with:
toolchain: ${{ env.TOOLCHAIN_LINT }}
targets: wasm32-unknown-unknown
components: rustfmt, clippy
components: rustfmt, clippy, rust-src
- uses: Swatinem/rust-cache@v2
with:
key: lint-v0
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/rust-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ jobs:
with:
version: "3.6.1"

- name: Add wasm32-unknwon-unknown target
run: rustup target add wasm32-unknown-unknown
- uses: actions/checkout@v4
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
components: rust-src

- name: Build docs
uses: actions-rs/cargo@v1
Expand Down
490 changes: 249 additions & 241 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"
members = ["cli", "core"]

[workspace.package]
version = "0.5.0"
version = "0.5.1"
authors = ["Parity Technologies <[email protected]>"]
description = "Substrate's programmatic testing framework."
edition = "2021"
Expand Down
3 changes: 1 addition & 2 deletions core/src/commands/fast_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ use parity_scale_codec::{Decode, Encode};
use sc_cli::Result;
use sc_executor::{sp_wasm_interface::HostFunctions, WasmExecutor};
use serde::de::DeserializeOwned;
use sp_api::HashingFor;
use sp_core::H256;
use sp_inherents::InherentData;
use sp_runtime::{
traits::{Header, NumberFor, One, Saturating},
traits::{HashingFor, Header, NumberFor, One, Saturating},
Digest,
};
use sp_state_machine::TestExternalities;
Expand Down
3 changes: 1 addition & 2 deletions core/src/commands/on_runtime_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ use bytesize::ByteSize;
use frame_try_runtime::UpgradeCheckSelect;
use parity_scale_codec::Encode;
use sc_executor::sp_wasm_interface::HostFunctions;
use sp_api::HashingFor;
use sp_core::{hexdisplay::HexDisplay, Hasher};
use sp_runtime::traits::{Block as BlockT, NumberFor};
use sp_runtime::traits::{Block as BlockT, HashingFor, NumberFor};
use sp_state_machine::{CompactProof, StorageProof};

use crate::{
Expand Down
3 changes: 1 addition & 2 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ use sc_cli::{execution_method_from_cli, RuntimeVersion};
use sc_executor::{
sp_wasm_interface::HostFunctions, HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY,
};
use sp_api::HashingFor;
use sp_core::{
offchain::{
testing::{TestOffchainExt, TestTransactionPoolExt},
Expand All @@ -33,7 +32,7 @@ use sp_core::{
};
use sp_externalities::Extensions;
use sp_keystore::{testing::MemoryKeystore, KeystoreExt};
use sp_runtime::traits::Block as BlockT;
use sp_runtime::traits::{Block as BlockT, HashingFor};
use sp_state_machine::{
OverlayedChanges, StateMachine, StorageProof, TestExternalities, TrieBackendBuilder,
};
Expand Down
5 changes: 2 additions & 3 deletions core/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ use frame_remote_externalities::{
use parity_scale_codec::Decode;
use sc_cli::RuntimeVersion;
use sc_executor::{sp_wasm_interface::HostFunctions, WasmExecutor};
use sp_api::{HashT, HeaderT};
use sp_core::{
hexdisplay::HexDisplay, storage::well_known_keys, traits::ReadRuntimeVersion, twox_128,
hexdisplay::HexDisplay, storage::well_known_keys, traits::ReadRuntimeVersion, twox_128, Hasher,
};
use sp_runtime::{
traits::{BlakeTwo256, Block as BlockT},
traits::{BlakeTwo256, Block as BlockT, Header as HeaderT},
DeserializeOwned,
};
use substrate_rpc_client::{ws_client, ChainApi};
Expand Down