Simplify BABE pre-digest definitions (#5289)

* Init vrf crate without type alias

* Generic PreDigest definition for BABE

* Fix BABE vrf interface change

* Missing default-features def in sp-consensus-babe

* Fix sp-consensus-babe compile

* frame-babe: fix type inference

* Unify type definitions of vrf output/proof and randomness

* frame-babe: fix tests

* Bump node impl version

* Update cargo lock

* Derive Copy for RawVRFOutput and RawVRFProof

* Fix duplicated derive

Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
Wei Tang
2020-03-23 11:53:41 +01:00
committed by GitHub
parent 95d1d668c3
commit 9c7261fab3
17 changed files with 392 additions and 190 deletions
+1 -1
View File
@@ -9,7 +9,6 @@ homepage = "https://substrate.dev"
repository = "https://github.com/paritytech/substrate/"
documentation = "https://docs.rs/sc-consensus-babe"
[dependencies]
codec = { package = "parity-scale-codec", version = "1.2.0", features = ["derive"] }
sp-consensus-babe = { version = "0.8.0-alpha.4", path = "../../../primitives/consensus/babe" }
@@ -32,6 +31,7 @@ sp-api = { version = "2.0.0-alpha.4", path = "../../../primitives/api" }
sp-block-builder = { version = "2.0.0-alpha.4", path = "../../../primitives/block-builder" }
sp-blockchain = { version = "2.0.0-alpha.4", path = "../../../primitives/blockchain" }
sp-consensus = { version = "0.8.0-alpha.4", path = "../../../primitives/consensus/common" }
sp-consensus-vrf = { version = "0.8.0-alpha.4", path = "../../../primitives/consensus/vrf" }
sc-consensus-uncles = { version = "0.8.0-alpha.4", path = "../uncles" }
sc-consensus-slots = { version = "0.8.0-alpha.4", path = "../slots" }
sp-runtime = { version = "2.0.0-alpha.4", path = "../../../primitives/runtime" }