Skip to content

Commit

Permalink
add warn log
Browse files Browse the repository at this point in the history
  • Loading branch information
afkbyte committed Sep 23, 2024
1 parent 2a25292 commit 6cc8d45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions services/bls_aggregation/blsagg.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ func (a *BlsAggregatorService) singleTaskAggregatorGoroutineFunc(
digestAggregatedOperators, ok := aggregatedOperatorsDict[taskResponseDigest]
if ok {
if digestAggregatedOperators.signersOperatorIdsSet[signedTaskResponseDigest.OperatorId] {
a.logger.Warn(
"Duplicate signature received",
"operatorId", fmt.Sprintf("%x", signedTaskResponseDigest.OperatorId),
"taskIndex", taskIndex,
)
signedTaskResponseDigest.SignatureVerificationErrorC <- fmt.Errorf("duplicate signature from operator %x for task %d", signedTaskResponseDigest.OperatorId, taskIndex)
continue
}
Expand Down

0 comments on commit 6cc8d45

Please sign in to comment.