Skip to content

Commit 94d907c

Browse files
authored
chore: log error instead of warn on bls agg errors (#705)
1 parent 2219a1a commit 94d907c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

aggregator/internal/pkg/aggregator.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,10 @@ const MaxSentTxRetries = 5
206206

207207
func (agg *Aggregator) handleBlsAggServiceResponse(blsAggServiceResp blsagg.BlsAggregationServiceResponse) {
208208
if blsAggServiceResp.Err != nil {
209-
agg.logger.Warn("BlsAggregationServiceResponse contains an error", "err", blsAggServiceResp.Err)
210-
agg.logger.Info("- Locking task mutex: Delete task from operator map", "taskIndex", blsAggServiceResp.TaskIndex)
211209
agg.taskMutex.Lock()
210+
batchMerkleRoot := agg.batchesRootByIdx[blsAggServiceResp.TaskIndex]
211+
agg.logger.Error("BlsAggregationServiceResponse contains an error", "err", blsAggServiceResp.Err, "merkleRoot", hex.EncodeToString(batchMerkleRoot[:]))
212+
agg.logger.Info("- Locking task mutex: Delete task from operator map", "taskIndex", blsAggServiceResp.TaskIndex)
212213

213214
// Remove task from the list of tasks
214215
delete(agg.operatorRespondedBatch, blsAggServiceResp.TaskIndex)

0 commit comments

Comments
 (0)