Skip to content

Commit

Permalink
Switching between rocks/paritydb
Browse files Browse the repository at this point in the history
  • Loading branch information
Klapeyron committed Jan 30, 2025
1 parent 37d0791 commit 8354ab8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion node/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ serde_json = { workspace = true }
substrate-wasm-builder = { workspace = true, optional = true }

[features]
default = ["std"]
default = ["std", "with-rocksdb-weights"]
with-rocksdb-weights = []
with-paritydb-weights = []
std = [
Expand Down
3 changes: 3 additions & 0 deletions node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
extern crate frame_benchmarking;

// A few exports that help ease life for downstream crates.
// #[cfg(feature = "with-paritydb-weights")]
// use frame_support::weights::constants::ParityDbWeight as RuntimeDbWeight;
// #[cfg(feature = "with-rocksdb-weights")]
use frame_support::weights::constants::RocksDbWeight as RuntimeDbWeight;
use authority_selection_inherents::authority_selection_inputs::AuthoritySelectionInputs;
use authority_selection_inherents::filter_invalid_candidates::{
Expand Down

0 comments on commit 8354ab8

Please sign in to comment.