mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-06 06:47:25 +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
46 lines
1.9 KiB
TOML
46 lines
1.9 KiB
TOML
[package]
|
|
name = "substrate-consensus-babe"
|
|
version = "2.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
description = "BABE consensus algorithm for substrate"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
parity-codec = { version = "4.1.1", features = ["derive"] }
|
|
babe-primitives = { package = "substrate-consensus-babe-primitives", path = "primitives" }
|
|
primitives = { package = "substrate-primitives", path = "../../primitives" }
|
|
num-bigint = "0.2"
|
|
num-rational = "0.2"
|
|
num-traits = "0.2"
|
|
runtime_support = { package = "srml-support", path = "../../../srml/support" }
|
|
runtime_version = { package = "sr-version", path = "../../sr-version" }
|
|
runtime_io = { package = "sr-io", path = "../../sr-io" }
|
|
inherents = { package = "substrate-inherents", path = "../../inherents" }
|
|
substrate-telemetry = { path = "../../telemetry" }
|
|
srml-babe = { path = "../../../srml/babe" }
|
|
client = { package = "substrate-client", path = "../../client" }
|
|
consensus_common = { package = "substrate-consensus-common", path = "../common" }
|
|
slots = { package = "substrate-consensus-slots", path = "../slots" }
|
|
runtime_primitives = { package = "sr-primitives", path = "../../sr-primitives" }
|
|
fork-tree = { path = "../../utils/fork-tree" }
|
|
futures = "0.1.26"
|
|
futures03 = { package = "futures-preview", version = "0.3.0-alpha.17", features = ["compat"] }
|
|
tokio-timer = "0.2.11"
|
|
parking_lot = "0.8.0"
|
|
log = "0.4.6"
|
|
schnorrkel = "0.1.1"
|
|
rand = "0.6.5"
|
|
merlin = "1.0.3"
|
|
|
|
[dev-dependencies]
|
|
keyring = { package = "substrate-keyring", path = "../../keyring" }
|
|
substrate-executor = { path = "../../executor" }
|
|
network = { package = "substrate-network", path = "../../network", features = ["test-helpers"]}
|
|
service = { package = "substrate-service", path = "../../service" }
|
|
test-client = { package = "substrate-test-runtime-client", path = "../../test-runtime/client" }
|
|
tokio = "0.1.18"
|
|
env_logger = "0.6.1"
|
|
|
|
[features]
|
|
test-helpers = []
|