babe: only process vrf on module finalization (#11113)
* babe: only process vrf on block execution finalization * babe: rename CurrentBlockRandomness to PreviousBlockRandomness * babe: add test for initialization ordering * babe: rename PreviousBlockRandomness to ParentBlockRandomness * babe: re-add CurrentBlockRandomness with deprecation notice * babe: export CurrentBlockRandomness * babe: silence deprecation warning when exporting CurrentBlockRandomness * babe: suggestion from code review Co-authored-by:Bastian Köcher <bkchr@users.noreply.github.com> * babe: flatten nested option * babe: rustfmt Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
Showing
- substrate/Cargo.lock 1 addition, 0 deletionssubstrate/Cargo.lock
- substrate/frame/babe/src/lib.rs 96 additions, 87 deletionssubstrate/frame/babe/src/lib.rs
- substrate/frame/babe/src/randomness.rs 37 additions, 13 deletionssubstrate/frame/babe/src/randomness.rs
- substrate/frame/babe/src/tests.rs 39 additions, 15 deletionssubstrate/frame/babe/src/tests.rs
- substrate/primitives/consensus/babe/src/digests.rs 15 additions, 8 deletionssubstrate/primitives/consensus/babe/src/digests.rs
- substrate/primitives/consensus/vrf/Cargo.toml 2 additions, 0 deletionssubstrate/primitives/consensus/vrf/Cargo.toml
- substrate/primitives/consensus/vrf/src/schnorrkel.rs 30 additions, 1 deletionsubstrate/primitives/consensus/vrf/src/schnorrkel.rs
Please register or sign in to comment