Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeddes committed Dec 5, 2024
1 parent ea64829 commit 010282e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions relayer/relays/beefy/on-demand-sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,13 @@ func (relay *OnDemandRelay) Start(ctx context.Context) error {

log.Info("Sync completed")

// Sleep for 10 minutes to allow message relayer to sync nonces
sleep(ctx, time.Minute*10)

relay.waitUntilMessagesSynced(ctx, paraNonce)
}
}
}

func (relay *OnDemandRelay) waitUntilMessagesSynced(ctx context.Context, paraNonce uint64) {
sleep(ctx, time.Minute*10)
for {
ethNonce, err := relay.fetchEthereumNonce(ctx)
if err != nil {
Expand Down

0 comments on commit 010282e

Please sign in to comment.