Add error types to BABE and PoW (#3827)
* Add an error type to Babe
* Add an error type to PoW
* Simplify error enum variant names
* Update core/consensus/babe/src/lib.rs
Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com>
* Add missing newline
* Split up DataProvider into CreateInherents and CheckInherents
Showing
- substrate/Cargo.lock 2 additions, 0 deletionssubstrate/Cargo.lock
- substrate/core/consensus/babe/Cargo.toml 1 addition, 0 deletionssubstrate/core/consensus/babe/Cargo.toml
- substrate/core/consensus/babe/src/lib.rs 100 additions, 45 deletionssubstrate/core/consensus/babe/src/lib.rs
- substrate/core/consensus/babe/src/tests.rs 3 additions, 3 deletionssubstrate/core/consensus/babe/src/tests.rs
- substrate/core/consensus/babe/src/verification.rs 15 additions, 30 deletionssubstrate/core/consensus/babe/src/verification.rs
- substrate/core/consensus/pow/Cargo.toml 1 addition, 0 deletionssubstrate/core/consensus/pow/Cargo.toml
- substrate/core/consensus/pow/src/lib.rs 69 additions, 28 deletionssubstrate/core/consensus/pow/src/lib.rs
Please register or sign in to comment