Skip to content

Commit

Permalink
Add fake runtime genesis config
Browse files Browse the repository at this point in the history
  • Loading branch information
dastansam committed May 2, 2024
1 parent 3d22c34 commit 18767f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

11 changes: 3 additions & 8 deletions crates/subspace-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ edition = "2021"
license = "GPL-3.0-or-later"
homepage = "https://subspace.network"
repository = "https://github.com/subspace/subspace"
include = [
"/src",
"/Cargo.toml",
]
include = ["/src", "/Cargo.toml"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down Expand Up @@ -56,6 +53,7 @@ sc-tracing = { git = "https://github.com/subspace/polkadot-sdk", rev = "44d742b9
sc-transaction-pool = { git = "https://github.com/subspace/polkadot-sdk", rev = "44d742b90e7852aed1f08ab5299d5d88cfa1c6ed" }
sc-transaction-pool-api = { git = "https://github.com/subspace/polkadot-sdk", rev = "44d742b90e7852aed1f08ab5299d5d88cfa1c6ed" }
schnorrkel = "0.11.4"
serde = { version = "1.0.199", default-features = false, features = ["derive"] }
sp-api = { git = "https://github.com/subspace/polkadot-sdk", rev = "44d742b90e7852aed1f08ab5299d5d88cfa1c6ed" }
sp-block-builder = { git = "https://github.com/subspace/polkadot-sdk", rev = "44d742b90e7852aed1f08ab5299d5d88cfa1c6ed" }
sp-blockchain = { git = "https://github.com/subspace/polkadot-sdk", rev = "44d742b90e7852aed1f08ab5299d5d88cfa1c6ed" }
Expand Down Expand Up @@ -96,7 +94,4 @@ frame-system-rpc-runtime-api = { git = "https://github.com/subspace/polkadot-sdk
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/subspace/polkadot-sdk", rev = "44d742b90e7852aed1f08ab5299d5d88cfa1c6ed" }

[features]
runtime-benchmarks = [
"dep:frame-benchmarking",
"sc-domains/runtime-benchmarks",
]
runtime-benchmarks = ["dep:frame-benchmarking", "sc-domains/runtime-benchmarks"]
4 changes: 2 additions & 2 deletions crates/subspace-service/src/fake_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use sp_messenger::messages::{
};
use sp_runtime::traits::{Block as BlockT, NumberFor};
use sp_runtime::transaction_validity::{TransactionSource, TransactionValidity};
use sp_runtime::{ApplyExtrinsicResult, ExtrinsicInclusionMode};
use sp_runtime::{ApplyExtrinsicResult, BuildStorage, ExtrinsicInclusionMode};
use sp_version::RuntimeVersion;
use std::collections::btree_map::BTreeMap;
use subspace_core_primitives::objects::BlockObjectMapping;
Expand Down Expand Up @@ -66,7 +66,7 @@ sp_api::decl_runtime_apis! {
struct Runtime;

#[derive(serde::Deserialize, serde::Serialize)]
struct RuntimeGenesisConfig;
pub struct RuntimeGenesisConfig;

impl BuildStorage for RuntimeGenesisConfig {
fn assimilate_storage(&self, _storage: &mut sp_core::storage::Storage) -> Result<(), String> {
Expand Down

0 comments on commit 18767f7

Please sign in to comment.