Skip to content
Unverified Commit d299fed3 authored by Wei Tang's avatar Wei Tang Committed by GitHub
Browse files

epoch-changes: separate epoch header with epoch data (#4881)



* fork-tree: prune returns all pruned node data

* epoch-changes: split EpochHeader vs epoch data

* EpochChanges::viable_epoch and add missing comments

* Incoperate the new epoch_changes interface for BABE

* Fix BABE tests

* Fix fork-tree pruning issue

* Fix tests

* Fix pruning algorithm

* fork-tree: implement map function for mapping one value type to another

* Add migration script for new epoch changes scheme

* Update utils/fork-tree/src/lib.rs

Co-Authored-By: default avatarAndré Silva <[email protected]>

* Update client/consensus/slots/src/lib.rs

Co-Authored-By: default avatarAndré Silva <[email protected]>

* Remove authorities_len.is_none check, which is duplicate of unwrap_or(false)

* Update client/consensus/epochs/src/lib.rs

Co-Authored-By: default avatarAndré Silva <[email protected]>

* Update client/consensus/epochs/src/lib.rs

Co-Authored-By: default avatarAndré Silva <[email protected]>

* No trailing ; for return statement

* Use VERSION_KEY for migration

* Fix issues that removed nodes are not properly added into removed list

* Add comments indicating end_slot is non-inclusive

* fork-tree: use &mut F for map type declaration

* Add tests for v0 epoch_changes migration

* Fix babe RPC tests

Co-authored-by: default avatarAndré Silva <[email protected]>
parent ca250684
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment