Skip to content

Commit

Permalink
fix: witness loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM committed Feb 4, 2025
1 parent 990cbb3 commit 1fae0a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1215,8 +1215,7 @@ func (a *Aggregator) getAndLockBatchToProve(

// Request the witness from the server, if it is busy just keep looping until it is available
start := time.Now()
var witness []byte
witness, err = a.rpcClient.GetWitness(batchNumberToVerify, a.cfg.UseFullWitness)
witness, err := a.rpcClient.GetWitness(batchNumberToVerify, a.cfg.UseFullWitness)
for err != nil {
if errors.Is(err, rpc.ErrBusy) {
a.logger.Debugf(
Expand Down

0 comments on commit 1fae0a9

Please sign in to comment.