grandpa: fix creation of justification with equivocating precommits in commit (#11302)

* grandpa: fix creation of justification ancestry

we would reject commits that have precommits targeting blocks lower than the
commit target. when there is an equivocation (or if it the commit is not
minimal) it is possible to have such precommits and we should assume that they
are the round base.

* grandpa: bump to 0.16.0

* grandpa: add test for justification with equivocation

* grandpa: fix failing test
This commit is contained in:
André Silva authored and GitHub committed 2022-06-14 10:41:11 +00:00
1 parent 525fc8ebc3
commit 06cf8ad076
9 files changed
+125 -20

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ sp-staking = { version = "4.0.0-dev", default-features = false, path = "../../pr
sp-std = { version = "4.0.0", default-features = false, path = "../../primitives/std" }
[dev-dependencies]
grandpa = { package = "finality-grandpa", version = "0.15.0", features = ["derive-codec"] }
grandpa = { package = "finality-grandpa", version = "0.16.0", features = ["derive-codec"] }
frame-benchmarking = { version = "4.0.0-dev", path = "../benchmarking" }
frame-election-provider-support = { version = "4.0.0-dev", path = "../election-provider-support" }
pallet-balances = { version = "4.0.0-dev", path = "../balances" }