Skip to content

Commit

Permalink
fix: witness loop (#293) (#294)
Browse files Browse the repository at this point in the history
* fix: witness loop
  • Loading branch information
ToniRamirezM authored Feb 4, 2025
1 parent 2f7ed63 commit c4ff9bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,7 @@ func (a *Aggregator) getAndLockBatchToProve(
a.logger.Errorf("Failed to get witness for batch %d, err: %v", batchNumberToVerify, err)
}
time.Sleep(a.cfg.RetryTime.Duration)
witness, err = a.rpcClient.GetWitness(batchNumberToVerify, a.cfg.UseFullWitness)
}
end := time.Now()
a.logger.Debugf("Time to get witness for batch %d: %v", batchNumberToVerify, end.Sub(start))
Expand Down

0 comments on commit c4ff9bb

Please # to comment.