Skip to content

Commit

Permalink
Completely remove offchain worker infrastructure (#97)
Browse files Browse the repository at this point in the history
* We no longer need the offchain worker!

* remove from cargo.toml files too
  • Loading branch information
JoshOrndorff authored Sep 26, 2023
1 parent e3b72ff commit 561c5ff
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ sp-inherents = { default_features = false, git = "https://github.com/paritytech/
sp-io = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" }
sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" }
sp-keystore = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" }
sp-offchain = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" }
sp-session = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" }
sp-std = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" }
Expand Down
2 changes: 0 additions & 2 deletions tuxedo-template-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ sp-core = { default_features = false, workspace = true }
sp-debug-derive = { features = [ "force-debug" ], default_features = false, workspace = true }
sp-inherents = { default_features = false, workspace = true }
sp-io = { features = [ "with-tracing" ], default_features = false, workspace = true }
sp-offchain = { default_features = false, workspace = true }
sp-runtime = { default_features = false, workspace = true }
sp-session = { default_features = false, workspace = true }
sp-std = { default_features = false, workspace = true }
Expand Down Expand Up @@ -54,7 +53,6 @@ std = [
"sp-debug-derive/std",
"sp-block-builder/std",
"sp-inherents/std",
"sp-offchain/std",
"parity-scale-codec/std",
"sp-core/std",
"sp-std/std",
Expand Down
6 changes: 0 additions & 6 deletions tuxedo-template-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,6 @@ impl_runtime_apis! {
}
}

impl sp_offchain::OffchainWorkerApi<Block> for Runtime {
fn offchain_worker(_header: &<Block as BlockT>::Header) {
// Tuxedo does not yet support offchain workers, and maybe never will.
}
}

impl sp_session::SessionKeys<Block> for Runtime {
fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8> {
opaque::SessionKeys::generate(seed)
Expand Down

0 comments on commit 561c5ff

Please sign in to comment.