mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 17:41:08 +00:00
becc3b0a4f
* {core,srml}/authority-discovery: Move generic to specific session keys
* {srml,core}/authority-discovery: Verify signature outside of runtime
Given that the `core/authority-discovery` uses concrete authority
identifiers and signatures, one can verify a signature with the
authority discovery within `core`. Given the above, the `verify` runtime
api is obsolete and thus removed.
* *: Add authority discovery to the set of session keys
* *: Sign authority discovery DHT payload with keystore instead of runtime
Instead of calling a runtime function to sign a dht payload, which then
invokes the keystore, pass the keystore to the authority discovery
module and use it directly.
* core/authority-discovery: Give libp2p Kademlia time to start up
* core/authority-discovery: Move authorities priority group name to const
* node/runtime/src/lib.rs: Bump runtime spec version
* *: Fix lints and node/testing test failures
* *: Fix formatting
* core/authority-discovery: Box dht event channel in unit tests
* node/cli/src/service.rs: Fix future import
* node/cli/src/service.rs: Replace unwrap by expect with proof
* node/cli/src/chain_spec: Remove TODO for testnet key generation
* core/authority-discovery/src/lib: Remove scale encoding TODOs
* srml/authority-discovery: Make comment a doc comment
* core/authority-discovery: Remove unused StreamExt import
* node/runtime: Bump impl version to debug CI
* Test ci.
* Change the line width to 100.
* Revert "Change the line width to 100."
This reverts commit edff1f855bc71e0418bf3a967f81a35591d882e3.
* Fix a check for polkadot to work on forked repos.
* Revert "node/runtime: Bump impl version to debug CI"
This reverts commit 1a90903b4c929bc55a9e0a538af34b50b7f65139.
* Revert "Test ci."
This reverts commit a2c9df574e645158f77cd2b3d4d9355bcae33aab.
* Cargo.lock: Fix wrong lock file merge
* srml/authority-discovery: Keep track of new validator set not upcoming
* core/authority-discovery: Document key retrieval functions
140 lines
6.2 KiB
TOML
140 lines
6.2 KiB
TOML
[package]
|
|
name = "node-cli"
|
|
version = "2.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
description = "Substrate node implementation in Rust."
|
|
build = "build.rs"
|
|
edition = "2018"
|
|
default-run = "substrate"
|
|
|
|
[badges]
|
|
travis-ci = { repository = "paritytech/substrate", branch = "master" }
|
|
maintenance = { status = "actively-developed" }
|
|
is-it-maintained-issue-resolution = { repository = "paritytech/substrate" }
|
|
is-it-maintained-open-issues = { repository = "paritytech/substrate" }
|
|
|
|
[[bin]]
|
|
name = "substrate"
|
|
path = "bin/main.rs"
|
|
required-features = ["cli"]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
# third-party dependencies
|
|
codec = { package = "parity-scale-codec", version = "1.0.6" }
|
|
serde = { version = "1.0.102", features = [ "derive" ] }
|
|
futures = "0.1.29"
|
|
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat"] }
|
|
hex-literal = "0.2.1"
|
|
jsonrpc-core = "14.0.3"
|
|
log = "0.4.8"
|
|
rand = "0.7.2"
|
|
structopt = "0.3.3"
|
|
|
|
# primitives
|
|
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
|
sr-primitives = { path = "../../core/sr-primitives" }
|
|
babe-primitives = { package = "substrate-consensus-babe-primitives", path = "../../core/consensus/babe/primitives" }
|
|
grandpa_primitives = { package = "substrate-finality-grandpa-primitives", path = "../../core/finality-grandpa/primitives" }
|
|
authority-discovery-primitives = { package = "substrate-authority-discovery-primitives", path = "../../core/authority-discovery/primitives"}
|
|
|
|
# core dependencies
|
|
runtime-io = { package = "sr-io", path = "../../core/sr-io" }
|
|
client = { package = "substrate-client", path = "../../core/client" }
|
|
inherents = { package = "substrate-inherents", path = "../../core/inherents" }
|
|
chain-spec = { package = "substrate-chain-spec", path = "../../core/chain-spec" }
|
|
transaction_pool = { package = "substrate-transaction-pool", path = "../../core/transaction-pool" }
|
|
network = { package = "substrate-network", path = "../../core/network" }
|
|
babe = { package = "substrate-consensus-babe", path = "../../core/consensus/babe" }
|
|
grandpa = { package = "substrate-finality-grandpa", path = "../../core/finality-grandpa" }
|
|
authority-discovery = { package = "substrate-authority-discovery", path = "../../core/authority-discovery"}
|
|
keyring = { package = "substrate-keyring", path = "../../core/keyring" }
|
|
client_db = { package = "substrate-client-db", path = "../../core/client/db", default-features = false }
|
|
offchain = { package = "substrate-offchain", path = "../../core/offchain" }
|
|
substrate-rpc = { package = "substrate-rpc", path = "../../core/rpc" }
|
|
substrate-basic-authorship = { path = "../../core/basic-authorship" }
|
|
substrate-service = { path = "../../core/service", default-features = false }
|
|
substrate-telemetry = { package = "substrate-telemetry", path = "../../core/telemetry" }
|
|
|
|
# srml dependencies
|
|
indices = { package = "srml-indices", path = "../../srml/indices" }
|
|
timestamp = { package = "srml-timestamp", path = "../../srml/timestamp", default-features = false }
|
|
finality_tracker = { package = "srml-finality-tracker", path = "../../srml/finality-tracker", default-features = false }
|
|
contracts = { package = "srml-contracts", path = "../../srml/contracts" }
|
|
system = { package = "srml-system", path = "../../srml/system" }
|
|
balances = { package = "srml-balances", path = "../../srml/balances" }
|
|
transaction-payment = { package = "srml-transaction-payment", path = "../../srml/transaction-payment" }
|
|
support = { package = "srml-support", path = "../../srml/support", default-features = false }
|
|
im_online = { package = "srml-im-online", path = "../../srml/im-online", default-features = false }
|
|
sr-authority-discovery = { package = "srml-authority-discovery", path = "../../srml/authority-discovery", default-features = false }
|
|
|
|
# node-specific dependencies
|
|
node-runtime = { path = "../runtime" }
|
|
node-rpc = { path = "../rpc" }
|
|
node-primitives = { path = "../primitives" }
|
|
node-executor = { path = "../executor" }
|
|
|
|
# CLI-specific dependencies
|
|
tokio = { version = "0.1.22", optional = true }
|
|
exit-future = { version = "0.1.4", optional = true }
|
|
substrate-cli = { path = "../../core/cli", optional = true }
|
|
transaction-factory = { path = "../../test-utils/transaction-factory", optional = true }
|
|
ctrlc = { version = "3.1.3", features = ["termination"], optional = true }
|
|
|
|
# WASM-specific dependencies
|
|
libp2p = { version = "0.13.0", default-features = false, optional = true }
|
|
clear_on_drop = { version = "0.2.3", features = ["no_cc"], optional = true } # Imported just for the `no_cc` feature
|
|
console_error_panic_hook = { version = "0.1.1", optional = true }
|
|
console_log = { version = "0.1.2", optional = true }
|
|
js-sys = { version = "0.3.22", optional = true }
|
|
wasm-bindgen = { version = "0.2.45", optional = true }
|
|
wasm-bindgen-futures = { version = "0.3.22", optional = true }
|
|
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d", optional = true }
|
|
rand6 = { package = "rand", version = "0.6", features = ["wasm-bindgen"], optional = true } # Imported just for the `wasm-bindgen` feature
|
|
|
|
[dev-dependencies]
|
|
keystore = { package = "substrate-keystore", path = "../../core/keystore" }
|
|
babe = { package = "substrate-consensus-babe", path = "../../core/consensus/babe", features = ["test-helpers"] }
|
|
consensus-common = { package = "substrate-consensus-common", path = "../../core/consensus/common" }
|
|
service-test = { package = "substrate-service-test", path = "../../core/service/test" }
|
|
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19" }
|
|
tempfile = "3.1.0"
|
|
|
|
[build-dependencies]
|
|
substrate-cli = { package = "substrate-cli", path = "../../core/cli" }
|
|
build-script-utils = { package = "substrate-build-script-utils", path = "../../core/utils/build-script-utils" }
|
|
structopt = "0.3.3"
|
|
vergen = "3.0.4"
|
|
|
|
[features]
|
|
default = ["cli"]
|
|
browser = [
|
|
"clear_on_drop",
|
|
"console_error_panic_hook",
|
|
"console_log",
|
|
"js-sys",
|
|
"libp2p",
|
|
"wasm-bindgen",
|
|
"wasm-bindgen-futures",
|
|
"kvdb-memorydb",
|
|
"rand/wasm-bindgen",
|
|
"rand6"
|
|
]
|
|
cli = [
|
|
"substrate-cli",
|
|
"transaction-factory",
|
|
"tokio",
|
|
"exit-future",
|
|
"ctrlc",
|
|
"substrate-service/rocksdb",
|
|
"node-executor/wasmi-errno",
|
|
]
|
|
wasmtime = [
|
|
"cli",
|
|
"node-executor/wasmtime",
|
|
"substrate-cli/wasmtime",
|
|
"substrate-service/wasmtime",
|
|
]
|