From 57623cc5ff93980f9b772306b8a768c4021e2f27 Mon Sep 17 00:00:00 2001 From: mateusfigmelo Date: Fri, 29 Aug 2025 20:13:15 +0000 Subject: [PATCH] chore: remove unused deps in node --- Cargo.lock | 33 --------------------------------- node/Cargo.toml | 15 --------------- 2 files changed, 48 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7d65c7aac9..68f322e7cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6810,27 +6810,21 @@ dependencies = [ "fc-rpc", "fc-rpc-core", "fc-storage", - "fp-consensus", "fp-rpc", "frame-benchmarking", "frame-benchmarking-cli", "frame-metadata-hash-extension", "frame-system", - "frame-system-rpc-runtime-api", "futures", "hex", "jsonrpsee", "log", "memmap2 0.9.7", "node-subtensor-runtime", - "num-traits", - "pallet-commitments", "pallet-drand", "pallet-subtensor-swap-rpc", - "pallet-subtensor-swap-runtime-api", "pallet-transaction-payment", "pallet-transaction-payment-rpc", - "pallet-transaction-payment-rpc-runtime-api", "sc-basic-authorship", "sc-chain-spec", "sc-chain-spec-derive", @@ -6841,16 +6835,13 @@ dependencies = [ "sc-consensus-babe", "sc-consensus-babe-rpc", "sc-consensus-grandpa", - "sc-consensus-grandpa-rpc", "sc-consensus-manual-seal", "sc-consensus-slots", "sc-executor", - "sc-keystore", "sc-network", "sc-network-sync", "sc-offchain", "sc-rpc", - "sc-rpc-api", "sc-service", "sc-telemetry", "sc-transaction-pool", @@ -6871,16 +6862,12 @@ dependencies = [ "sp-io", "sp-keyring", "sp-keystore", - "sp-offchain", "sp-runtime", - "sp-session", "sp-timestamp", - "sp-transaction-pool", "substrate-build-script-utils", "substrate-frame-rpc-system", "substrate-prometheus-endpoint", "subtensor-custom-rpc", - "subtensor-custom-rpc-runtime-api", "subtensor-runtime-common", ] @@ -10808,26 +10795,6 @@ dependencies = [ "thiserror 1.0.69", ] -[[package]] -name = "sc-consensus-grandpa-rpc" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2503-6#598feddb893f5ad3923a62e41a2f179b6e10c30c" -dependencies = [ - "finality-grandpa", - "futures", - "jsonrpsee", - "log", - "parity-scale-codec", - "sc-client-api", - "sc-consensus-grandpa", - "sc-rpc", - "serde", - "sp-blockchain", - "sp-core", - "sp-runtime", - "thiserror 1.0.69", -] - [[package]] name = "sc-consensus-manual-seal" version = "0.50.0" diff --git a/node/Cargo.toml b/node/Cargo.toml index 09458410ff..d00f4338e7 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -40,7 +40,6 @@ sp-core.workspace = true sc-executor.workspace = true sc-service.workspace = true sc-telemetry.workspace = true -sc-keystore.workspace = true sc-transaction-pool.workspace = true sc-transaction-pool-api.workspace = true sc-offchain.workspace = true @@ -51,7 +50,6 @@ sp-consensus-babe.workspace = true sc-consensus-babe-rpc.workspace = true sc-consensus.workspace = true sc-consensus-grandpa.workspace = true -sc-consensus-grandpa-rpc.workspace = true sp-consensus-grandpa.workspace = true sc-chain-spec.workspace = true sc-consensus-slots.workspace = true @@ -59,15 +57,11 @@ sc-client-api.workspace = true sp-runtime.workspace = true sp-io.workspace = true sp-timestamp.workspace = true -sp-transaction-pool = { workspace = true, features = ["default"] } sp-inherents.workspace = true sp-keyring.workspace = true -sp-offchain.workspace = true -sp-session.workspace = true frame-metadata-hash-extension.workspace = true frame-system.workspace = true pallet-transaction-payment.workspace = true -pallet-commitments.workspace = true pallet-drand.workspace = true sp-crypto-ec-utils = { workspace = true, default-features = true, features = [ "bls12-381", @@ -80,14 +74,11 @@ cumulus-primitives-proof-size-hostfunction.workspace = true jsonrpsee = { workspace = true, features = ["server"] } sc-rpc.workspace = true sp-api.workspace = true -sc-rpc-api.workspace = true sp-blockchain.workspace = true sp-block-builder.workspace = true sc-basic-authorship.workspace = true substrate-frame-rpc-system.workspace = true pallet-transaction-payment-rpc.workspace = true -frame-system-rpc-runtime-api.workspace = true -pallet-transaction-payment-rpc-runtime-api.workspace = true # These dependencies are used for runtime benchmarking frame-benchmarking.workspace = true @@ -109,16 +100,12 @@ fc-rpc = { workspace = true, features = ["rpc-binary-search-estimate"] } fc-rpc-core.workspace = true fp-rpc.workspace = true fc-aura.workspace = true -fp-consensus.workspace = true -num-traits = { workspace = true, features = ["std"] } # Local Dependencies node-subtensor-runtime = { workspace = true, features = ["std"] } subtensor-runtime-common = { workspace = true, features = ["std"] } subtensor-custom-rpc = { workspace = true, features = ["std"] } -subtensor-custom-rpc-runtime-api = { workspace = true, features = ["std"] } pallet-subtensor-swap-rpc = { workspace = true, features = ["std"] } -pallet-subtensor-swap-runtime-api = { workspace = true, features = ["std"] } [build-dependencies] substrate-build-script-utils.workspace = true @@ -148,7 +135,6 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "sc-service/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "pallet-commitments/runtime-benchmarks", "pallet-drand/runtime-benchmarks", "pallet-transaction-payment/runtime-benchmarks", ] @@ -161,7 +147,6 @@ try-runtime = [ "frame-system/try-runtime", "pallet-transaction-payment/try-runtime", "sp-runtime/try-runtime", - "pallet-commitments/try-runtime", "pallet-drand/try-runtime", ]