babe: expose next epoch data (#7829)
* babe: expose next epoch data * babe: add runtime api for next_epoch * babe: avoid reading next authorities from storage unnecessarily * babe: add notes about epoch duration constraints * babe: guard against overflow * babe: add test for fetching current and next epoch data
Showing
- substrate/bin/node/runtime/src/lib.rs 4 additions, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/babe/src/lib.rs 42 additions, 1 deletionsubstrate/frame/babe/src/lib.rs
- substrate/frame/babe/src/mock.rs 1 addition, 1 deletionsubstrate/frame/babe/src/mock.rs
- substrate/frame/babe/src/tests.rs 29 additions, 2 deletionssubstrate/frame/babe/src/tests.rs
- substrate/primitives/consensus/babe/src/lib.rs 4 additions, 0 deletionssubstrate/primitives/consensus/babe/src/lib.rs
- substrate/test-utils/runtime/src/lib.rs 8 additions, 0 deletionssubstrate/test-utils/runtime/src/lib.rs
Please register or sign in to comment