GRANDPA: add commit messages (#1151)
* get compiling with latest version of grandpa
* generalize UntilImported to prepare for waiting for commit message targets
* extract until_imported out to own module
* logic for blocking commits until enough blocks imported
* add tests for commit message blocking logic
* pass through commit mesage round number as well
* extract communication streams to own module
* add Error implementation for ExitOrError
* introduce stream adapter for checking commit messages
* output sink for commits
* implement the unimplemented
* remove extra line
* update to latest version of grandpa api
* update finality-grandpa to 0.4.0
* Use filter_map earlier when checking incoming commits messages
Co-Authored-By:
rphmeier <rphmeier@gmail.com>
* address some grumbles
Showing
- substrate/Cargo.lock 70 additions, 3 deletionssubstrate/Cargo.lock
- substrate/core/client/src/lib.rs 1 addition, 1 deletionsubstrate/core/client/src/lib.rs
- substrate/core/finality-grandpa/Cargo.toml 2 additions, 1 deletionsubstrate/core/finality-grandpa/Cargo.toml
- substrate/core/finality-grandpa/src/communication.rs 281 additions, 0 deletionssubstrate/core/finality-grandpa/src/communication.rs
- substrate/core/finality-grandpa/src/lib.rs 143 additions, 288 deletionssubstrate/core/finality-grandpa/src/lib.rs
- substrate/core/finality-grandpa/src/tests.rs 36 additions, 0 deletionssubstrate/core/finality-grandpa/src/tests.rs
- substrate/core/finality-grandpa/src/until_imported.rs 560 additions, 0 deletionssubstrate/core/finality-grandpa/src/until_imported.rs
Please register or sign in to comment