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
Showing
- substrate/Cargo.lock 4 additions, 4 deletionssubstrate/Cargo.lock
- substrate/client/finality-grandpa/Cargo.toml 2 additions, 2 deletionssubstrate/client/finality-grandpa/Cargo.toml
- substrate/client/finality-grandpa/rpc/Cargo.toml 1 addition, 1 deletionsubstrate/client/finality-grandpa/rpc/Cargo.toml
- substrate/client/finality-grandpa/src/finality_proof.rs 6 additions, 3 deletionssubstrate/client/finality-grandpa/src/finality_proof.rs
- substrate/client/finality-grandpa/src/justification.rs 42 additions, 7 deletionssubstrate/client/finality-grandpa/src/justification.rs
- substrate/client/finality-grandpa/src/observer.rs 1 addition, 1 deletionsubstrate/client/finality-grandpa/src/observer.rs
- substrate/client/finality-grandpa/src/tests.rs 67 additions, 0 deletionssubstrate/client/finality-grandpa/src/tests.rs
- substrate/frame/grandpa/Cargo.toml 1 addition, 1 deletionsubstrate/frame/grandpa/Cargo.toml
- substrate/primitives/finality-grandpa/Cargo.toml 1 addition, 1 deletionsubstrate/primitives/finality-grandpa/Cargo.toml
Please register or sign in to comment