Import multiple authority set change blocks (#1808)
* core: implement logic for tracking dag of possible pending changes * core: move pending justifications dag to its own crate * core: remove unnecessary clone bounds on dag * core: request justifications in-order from the dag * core: dag: rename changes variables to node * core: dag: allow finalizing blocks not part of dag * core: dag: track best finalized number * core: dag: add more tests * core: sync: clean up pending justifications dag * core: dag: derive codec decode encode * core: dag: better error support * core: dag: add finalization guarded by predicate * core: grandpa: track multiple authority set changes in dag * core: dag: add pre-order iterator * core: grandpa: request justifications on startup * core: dag: rearrange order of definitions * core: rename util/dag to util/fork_tree * core: fork_tree: add docs * core: fork_tree: add more tests * core: fork_tree: fix issues found in tests * core: grandpa: fix authorities tests * core: grandpa: add docs for is_descendent_of * core: sync: add docs for PendingJustifications * core: sync: add test for justification requests across forks * core: sync: don't resend import or finality notifications in tests * core: grandpa: add test for importing multiple change blocks * core: grandpa: fix logic for checking if a block enacts a change * core: grandpa: fix authorities tests
Showing
- substrate/Cargo.lock 10 additions, 0 deletionssubstrate/Cargo.lock
- substrate/Cargo.toml 1 addition, 0 deletionssubstrate/Cargo.toml
- substrate/core/finality-grandpa/Cargo.toml 1 addition, 0 deletionssubstrate/core/finality-grandpa/Cargo.toml
- substrate/core/finality-grandpa/src/authorities.rs 215 additions, 195 deletionssubstrate/core/finality-grandpa/src/authorities.rs
- substrate/core/finality-grandpa/src/environment.rs 44 additions, 3 deletionssubstrate/core/finality-grandpa/src/environment.rs
- substrate/core/finality-grandpa/src/import.rs 15 additions, 38 deletionssubstrate/core/finality-grandpa/src/import.rs
- substrate/core/finality-grandpa/src/lib.rs 8 additions, 6 deletionssubstrate/core/finality-grandpa/src/lib.rs
- substrate/core/finality-grandpa/src/tests.rs 68 additions, 4 deletionssubstrate/core/finality-grandpa/src/tests.rs
- substrate/core/network/Cargo.toml 1 addition, 0 deletionssubstrate/core/network/Cargo.toml
- substrate/core/network/src/chain.rs 17 additions, 0 deletionssubstrate/core/network/src/chain.rs
- substrate/core/network/src/protocol.rs 5 additions, 1 deletionsubstrate/core/network/src/protocol.rs
- substrate/core/network/src/sync.rs 77 additions, 20 deletionssubstrate/core/network/src/sync.rs
- substrate/core/network/src/test/mod.rs 38 additions, 12 deletionssubstrate/core/network/src/test/mod.rs
- substrate/core/network/src/test/sync.rs 38 additions, 3 deletionssubstrate/core/network/src/test/sync.rs
- substrate/core/util/fork-tree/Cargo.toml 9 additions, 0 deletionssubstrate/core/util/fork-tree/Cargo.toml
- substrate/core/util/fork-tree/src/lib.rs 784 additions, 0 deletionssubstrate/core/util/fork-tree/src/lib.rs
Please register or sign in to comment