babe: ancient epoch tree pruning (#3746)
* babe: prune epoch tree when importing a new epoch change * fork-tree: fix tree pruning * babe: actually prune epoch change fork tree * Fix typos * babe: add test for epoch tree pruning * fork-tree: fix pruning of stale forks
Showing
- substrate/core/consensus/babe/src/epoch_changes.rs 28 additions, 10 deletionssubstrate/core/consensus/babe/src/epoch_changes.rs
- substrate/core/consensus/babe/src/lib.rs 43 additions, 35 deletionssubstrate/core/consensus/babe/src/lib.rs
- substrate/core/consensus/babe/src/tests.rs 161 additions, 0 deletionssubstrate/core/consensus/babe/src/tests.rs
- substrate/core/utils/fork-tree/src/lib.rs 48 additions, 40 deletionssubstrate/core/utils/fork-tree/src/lib.rs
Please register or sign in to comment