From e7d06cacfc87c81d8982be297545442792fca9a9 Mon Sep 17 00:00:00 2001 From: Aliaksandr Tsurko Date: Mon, 18 Nov 2024 17:06:57 +0100 Subject: [PATCH] Add fast-blocks feature to the node --- node/Cargo.toml | 19 +++++-------------- src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/node/Cargo.toml b/node/Cargo.toml index 2aba49c96..dcd3cdc0f 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -106,25 +106,16 @@ subtensor-custom-rpc-runtime-api = { path = "../pallets/subtensor/runtime-api" } substrate-build-script-utils = { workspace = true } [features] -default = [ - "rocksdb", - "sql", - "txpool", -] -sql = [ - "fc-db/sql", - "fc-mapping-sync/sql", -] +default = ["rocksdb", "sql", "txpool"] +fast-blocks = ["node-subtensor-runtime/fast-blocks"] +sql = ["fc-db/sql", "fc-mapping-sync/sql"] rocksdb = [ "sc-service/rocksdb", "fc-db/rocksdb", "fc-mapping-sync/rocksdb", - "fc-rpc/rocksdb" -] -txpool = [ - "fc-rpc/txpool", - "fc-rpc-core/txpool" + "fc-rpc/rocksdb", ] +txpool = ["fc-rpc/txpool", "fc-rpc-core/txpool"] # Dependencies that are only required if runtime benchmarking should be build. runtime-benchmarks = [ diff --git a/src/lib.rs b/src/lib.rs index 8b1378917..6b376d88e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1 +1 @@ - +//! This crate exists for linting in CI. Look inside build.rs for reference.