mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-05-02 03:02:54 -04:00
Fix Dynamic Topic Subscriptions (#4767)
* check for sync status * check for chainstart Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user