grandpa: generic voting rule for backing off from best block (#4635)

* grandpa: generic voting rule for backing off from best block

* grandpa: fix tests
This commit is contained in:
André Silva
2020-01-16 13:53:45 +00:00
committed by Robert Habermeier
parent afc3318f21
commit d18fbd7940
5 changed files with 69 additions and 42 deletions
@@ -13,6 +13,7 @@ log = "0.4.8"
parking_lot = "0.9.0"
rand = "0.7.2"
parity-scale-codec = { version = "1.0.0", features = ["derive"] }
sp-arithmetic = { version = "2.0.0", path = "../../primitives/arithmetic" }
sp-runtime = { version = "2.0.0", path = "../../primitives/runtime" }
sp-consensus = { version = "0.8", path = "../../primitives/consensus/common" }
sp-core = { version = "2.0.0", path = "../../primitives/core" }