From 80ed6b8c25893f6d21f9c94910333e417af00a9f Mon Sep 17 00:00:00 2001 From: Mike Greenberg Date: Mon, 31 Aug 2020 22:31:25 -0400 Subject: [PATCH] fix(chainwatch): Process chain waitout waiting for update via ChainNotify --- cmd/lotus-chainwatch/syncer/sync.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/lotus-chainwatch/syncer/sync.go b/cmd/lotus-chainwatch/syncer/sync.go index 7b8153777..24fe88258 100644 --- a/cmd/lotus-chainwatch/syncer/sync.go +++ b/cmd/lotus-chainwatch/syncer/sync.go @@ -177,6 +177,8 @@ func (s *Syncer) Start(ctx context.Context) { for notif := range notifs { for _, change := range notif { switch change.Type { + case store.HCCurrent: + fallthrough case store.HCApply: unsynced, err := s.unsyncedBlocks(ctx, change.Val, sinceEpoch) if err != nil {