flow-go
flow-go copied to clipboard
[EFM] Update Epoch Lookup Component
The Epoch Lookup acts as a cache supporting queries for the epoch counter corresponding to a given view.
Changes:
- Add
EpochExtended
event handler:- Set
epochRange.finalView
to final view of extension
- Set
- Add
EpochRecovered
event handler:- Add
epochRange
forRecoveryEpoch
(Note: will be similar to handler forEpochCommittedPhaseStarted
)
- Add
- Remove/revisit [this sanity check](https://github.com/onflow/flow-go/blob/7364a433caa73648f8409f5da6fa7963666a0b2f/module/epochs/epoch_lookup.go#L84-L87) that counters are sequential
### Depends on
- [ ] https://github.com/onflow/flow-go/issues/5717
- [ ] https://github.com/onflow/flow-go/issues/5724
- [ ] https://github.com/onflow/flow-go/issues/5726