mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
9f50c8fce4
* babe: add babe module trait * babe: track current slot and epoch start slot * babe: implement ShouldEndSession based on epochs * babe: rename weight type to avoid ambiguities * babe: expose epoch start slot in Epoch digest * babe: use epoch start for validating epoch transitions * babe: make the epoch duration a parameter type * babe: remove unused fields from config * node: update runtime to use babe instead of aura * node: use babe instead of aura * core: generate sr25519 keys from seed and add to keystore * core: remove AuthorityKeyring * node: remove unused primitive types related to babe crypto * uniform babe primitives crate import name * wrap long lines * babe: fix find_epoch_digest * fork-tree: fix find_node_where * node: set babe epoch duration to "10 minutes" * babe: cleanup import key cache if authorities don't change * node: make integration test compile (but fail) * node: bump spec_version * node: fix import * babe: don't use constants in storage fields array sizes * babe: account for first epoch slot way in the past * babe: signal next epoch change (not current) * babe: calculate next epoch randomness with next epoch index * babe: track next epoch in node * babe: cache current epoch and authorities separately * babe: generate valid babe vrf proofs in integration test * babe: cleanup claim_slot * babe: perform threshold calculation according to spec * babe: compute relative weight in threshold * babe: more precise threshold calculation * babe: use floats for threshold exponent calculation * babe: update constant c
85 lines
3.9 KiB
TOML
85 lines
3.9 KiB
TOML
[package]
|
|
name = "node-runtime"
|
|
version = "2.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
integer-sqrt = { version = "0.1.2" }
|
|
safe-mix = { version = "1.0", default-features = false }
|
|
parity-codec = { version = "4.1.1", default-features = false, features = ["derive"] }
|
|
substrate-primitives = { path = "../../core/primitives", default-features = false }
|
|
client = { package = "substrate-client", path = "../../core/client", default-features = false }
|
|
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
|
runtime_primitives = { package = "sr-primitives", path = "../../core/sr-primitives", default-features = false }
|
|
offchain-primitives = { package = "substrate-offchain-primitives", path = "../../core/offchain/primitives", default-features = false }
|
|
version = { package = "sr-version", path = "../../core/sr-version", default-features = false }
|
|
support = { package = "srml-support", path = "../../srml/support", default-features = false }
|
|
authorship = { package = "srml-authorship", path = "../../srml/authorship", default-features = false }
|
|
babe = { package = "srml-babe", path = "../../srml/babe", default-features = false }
|
|
babe-primitives = { package = "substrate-consensus-babe-primitives", path = "../../core/consensus/babe/primitives", default-features = false }
|
|
balances = { package = "srml-balances", path = "../../srml/balances", default-features = false }
|
|
contracts = { package = "srml-contracts", path = "../../srml/contracts", default-features = false }
|
|
collective = { package = "srml-collective", path = "../../srml/collective", default-features = false }
|
|
democracy = { package = "srml-democracy", path = "../../srml/democracy", default-features = false }
|
|
elections = { package = "srml-elections", path = "../../srml/elections", default-features = false }
|
|
executive = { package = "srml-executive", path = "../../srml/executive", default-features = false }
|
|
finality-tracker = { package = "srml-finality-tracker", path = "../../srml/finality-tracker", default-features = false }
|
|
grandpa = { package = "srml-grandpa", path = "../../srml/grandpa", default-features = false }
|
|
indices = { package = "srml-indices", path = "../../srml/indices", default-features = false }
|
|
session = { package = "srml-session", path = "../../srml/session", default-features = false, features = ["historical"] }
|
|
staking = { package = "srml-staking", path = "../../srml/staking", default-features = false }
|
|
system = { package = "srml-system", path = "../../srml/system", default-features = false }
|
|
timestamp = { package = "srml-timestamp", path = "../../srml/timestamp", default-features = false }
|
|
treasury = { package = "srml-treasury", path = "../../srml/treasury", default-features = false }
|
|
sudo = { package = "srml-sudo", path = "../../srml/sudo", default-features = false }
|
|
im-online = { package = "srml-im-online", path = "../../srml/im-online", default-features = false }
|
|
node-primitives = { path = "../primitives", default-features = false }
|
|
rustc-hex = { version = "2.0", optional = true }
|
|
serde = { version = "1.0", optional = true }
|
|
substrate-keyring = { path = "../../core/keyring", optional = true }
|
|
|
|
[build-dependencies]
|
|
wasm-builder-runner = { package = "substrate-wasm-builder-runner", version = "1.0.2", path = "../../core/utils/wasm-builder-runner" }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
no_std = [
|
|
"contracts/core",
|
|
]
|
|
std = [
|
|
"parity-codec/std",
|
|
"substrate-primitives/std",
|
|
"rstd/std",
|
|
"runtime_primitives/std",
|
|
"support/std",
|
|
"authorship/std",
|
|
"babe/std",
|
|
"babe-primitives/std",
|
|
"balances/std",
|
|
"contracts/std",
|
|
"collective/std",
|
|
"democracy/std",
|
|
"elections/std",
|
|
"executive/std",
|
|
"finality-tracker/std",
|
|
"grandpa/std",
|
|
"indices/std",
|
|
"session/std",
|
|
"staking/std",
|
|
"system/std",
|
|
"timestamp/std",
|
|
"treasury/std",
|
|
"sudo/std",
|
|
"version/std",
|
|
"node-primitives/std",
|
|
"serde",
|
|
"safe-mix/std",
|
|
"client/std",
|
|
"rustc-hex",
|
|
"substrate-keyring",
|
|
"offchain-primitives/std",
|
|
"im-online/std",
|
|
]
|