mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 01:07:57 +00:00
605f643eed
It changes the way we extended the CLI functionalities of substrate to allow more flexibility. (If this was not clear, here is another version: it changes the `sc_cli` API to allow more flexibility).
This touches a few important things:
- the startup of the async task with tokei:
This was in node and node-template and I moved it to substrate. The idea is to have 1 time the code that handles unix signals (SIGTERM and SIGINT) properly. It is however possible to make this more generic to wait for a future instead and provide only a helper for the basic handling of SIGTERM and SIGINT.
- increased the version of structopt and tokei
- no more use of structopt internal's API
- less use of generics
Related to #4643 and https://github.com/paritytech/cumulus/pull/42: the implementation of "into_configuration" and "get_config" are similar but with better flexibility so it is now possible in cumulus to have the command-line arguments only of the run command for polkadot if we want
Related to https://github.com/paritytech/cumulus/issues/24 and https://github.com/paritytech/cumulus/issues/34 : it will now be possible to make a configuration struct for polkadot with some overrides of the default parameters much more easily.
38 lines
1.7 KiB
TOML
38 lines
1.7 KiB
TOML
[package]
|
|
name = "node-template"
|
|
version = "2.0.0"
|
|
authors = ["Anonymous"]
|
|
build = "build.rs"
|
|
edition = "2018"
|
|
license = "Unlicense"
|
|
|
|
[[bin]]
|
|
name = "node-template"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
futures = "0.3.1"
|
|
log = "0.4.8"
|
|
sc-cli = { version = "0.8.0", path = "../../client/cli" }
|
|
sp-core = { version = "2.0.0", path = "../../primitives/core" }
|
|
sc-executor = { version = "0.8", path = "../../client/executor" }
|
|
sc-service = { version = "0.8", path = "../../client/service" }
|
|
sp-inherents = { version = "2.0.0", path = "../../primitives/inherents" }
|
|
sc-transaction-pool = { version = "2.0.0", path = "../../client/transaction-pool" }
|
|
sp-transaction-pool = { version = "2.0.0", path = "../../primitives/transaction-pool" }
|
|
sc-network = { version = "0.8", path = "../../client/network" }
|
|
sc-consensus-aura = { version = "0.8", path = "../../client/consensus/aura" }
|
|
sp-consensus-aura = { version = "0.8", path = "../../primitives/consensus/aura" }
|
|
sp-consensus = { version = "0.8", path = "../../primitives/consensus/common" }
|
|
grandpa = { version = "0.8", package = "sc-finality-grandpa", path = "../../client/finality-grandpa" }
|
|
grandpa-primitives = { version = "2.0.0", package = "sp-finality-grandpa", path = "../../primitives/finality-grandpa" }
|
|
sc-client = { version = "0.8", path = "../../client/" }
|
|
node-template-runtime = { version = "2.0.0", path = "runtime" }
|
|
sp-runtime = { version = "2.0.0", path = "../../primitives/runtime" }
|
|
sc-basic-authorship = { path = "../../client/basic-authorship" }
|
|
structopt = "0.3.8"
|
|
|
|
[build-dependencies]
|
|
vergen = "3.0.4"
|
|
build-script-utils = { version = "2.0.0", package = "substrate-build-script-utils", path = "../../utils/build-script-utils" }
|