fix(chainwatch): Process chain waitout waiting for update via ChainNotify

This commit is contained in:
Mike Greenberg 2020-08-31 22:31:25 -04:00
parent 49d64f7f7e
commit 80ed6b8c25

View File

@ -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 {