Skip to content

Commit

Permalink
fix(events): check for sync-in-progress (#11932)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored Apr 29, 2024
1 parent 0a28ce4 commit ae2cc67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain/events/filter/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ func (m *EventFilterManager) Revert(ctx context.Context, from, to *types.TipSet)
func (m *EventFilterManager) Install(ctx context.Context, minHeight, maxHeight abi.ChainEpoch, tipsetCid cid.Cid, addresses []address.Address,
keysWithCodec map[string][]types.ActorEventBlock, excludeReverted bool) (EventFilter, error) {
m.mu.Lock()
if m.currentHeight == 0 {
// sync in progress, we haven't had an Apply
m.currentHeight = m.ChainStore.GetHeaviestTipSet().Height()
}
currentHeight := m.currentHeight
m.mu.Unlock()

Expand Down

0 comments on commit ae2cc67

Please sign in to comment.