flow-go icon indicating copy to clipboard operation
flow-go copied to clipboard

[EFM] Update Epoch Lookup Component

Open jordanschalm opened this issue 10 months ago • 0 comments

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
  • Add EpochRecovered event handler:
    • Add epochRange for RecoveryEpoch (Note: will be similar to handler for EpochCommittedPhaseStarted)
  • 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

jordanschalm avatar Apr 23 '24 20:04 jordanschalm