From 6cc8d451042b7752d00f458429d1f0dfd1a0d301 Mon Sep 17 00:00:00 2001 From: afkbyte Date: Mon, 23 Sep 2024 14:16:48 -0700 Subject: [PATCH] add warn log --- services/bls_aggregation/blsagg.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/bls_aggregation/blsagg.go b/services/bls_aggregation/blsagg.go index 75eb8794..2b7b4afc 100644 --- a/services/bls_aggregation/blsagg.go +++ b/services/bls_aggregation/blsagg.go @@ -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 }