Skip to content

Commit

Permalink
Fix Dynamic Topic Subscriptions (#4767)
Browse files Browse the repository at this point in the history
* check for sync status

* check for chainstart

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
  • Loading branch information
nisdas and prylabs-bulldozer[bot] committed Feb 7, 2020
1 parent f16a71f commit efd27c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beacon-chain/sync/subscriber.go
Expand Up @@ -211,6 +211,9 @@ func (r *Service) subscribeDynamic(topicFormat string, determineSubsLen func() i
stateSub.Unsubscribe()
return
case <-stateChannel:
if r.chainStarted && r.initialSync.Syncing() {
continue
}
// Update topic count.
wantedSubs := determineSubsLen()
// Resize as appropriate.
Expand Down

0 comments on commit efd27c7

Please sign in to comment.