From fdd25a70a958325207239341178eb6877c727dd1 Mon Sep 17 00:00:00 2001 From: Roy Yang Date: Wed, 22 Dec 2021 15:44:10 +1300 Subject: [PATCH] Disabled HTTP request for offchain workers --- Cargo.lock | 1 + node/service/Cargo.toml | 1 + node/service/src/lib.rs | 20 +++++++++++++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index e09076cd4..e74677d79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -265,6 +265,7 @@ dependencies = [ "sc-executor", "sc-finality-grandpa", "sc-network", + "sc-offchain", "sc-rpc", "sc-service", "sc-telemetry", diff --git a/node/service/Cargo.toml b/node/service/Cargo.toml index e50ba5df1..90abd5f7c 100644 --- a/node/service/Cargo.toml +++ b/node/service/Cargo.toml @@ -19,6 +19,7 @@ sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v sp-consensus = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } sp-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } sc-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } +sc-offchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } sp-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } diff --git a/node/service/src/lib.rs b/node/service/src/lib.rs index 3a7602505..28b90ddcd 100644 --- a/node/service/src/lib.rs +++ b/node/service/src/lib.rs @@ -652,7 +652,25 @@ fn inner_mandala_dev(config: Configuration, instant_sealing: bool) -> Result