grandpa: never overwrite current rounds voter state (#6823)

* grandpa: never overwrite current rounds voter state

* grandpa: add test for voter state overwrite
This commit is contained in:
André Silva
2020-08-06 10:30:29 +01:00
committed by GitHub
parent ee35dc9415
commit 886d79e0cb
3 changed files with 148 additions and 63 deletions
+1 -1
View File
@@ -21,7 +21,6 @@ futures-timer = "3.0.1"
log = "0.4.8"
parking_lot = "0.10.0"
rand = "0.7.2"
assert_matches = "1.3.0"
parity-scale-codec = { version = "1.3.4", features = ["derive"] }
sp-application-crypto = { version = "2.0.0-rc5", path = "../../primitives/application-crypto" }
sp-arithmetic = { version = "2.0.0-rc5", path = "../../primitives/arithmetic" }
@@ -47,6 +46,7 @@ finality-grandpa = { version = "0.12.3", features = ["derive-codec"] }
pin-project = "0.4.6"
[dev-dependencies]
assert_matches = "1.3.0"
finality-grandpa = { version = "0.12.3", features = ["derive-codec", "test-helpers"] }
sc-network = { version = "0.8.0-rc5", path = "../network" }
sc-network-test = { version = "0.8.0-rc5", path = "../network/test" }