Skip to content

Commit

Permalink
fix: nothing to send
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Jul 26, 2024
1 parent 24e3ebb commit 256f80a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aggsender/aggsender.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ func (a *AggSender) sendCertificates(ctx context.Context) {
continue
}

if len(bridgeEvents) == 0 {
// nothing to send
continue
}

certificate := a.buildCertificate(bridgeEvents)

if err := a.aggLayerClient.SendCertificate(certificate); err != nil {
Expand Down

0 comments on commit 256f80a

Please sign in to comment.