Skip to content

Commit

Permalink
Sort quorum IDs before aggregation (Layr-Labs#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Mar 20, 2024
1 parent 01a01e7 commit d6cb34e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/aggregation.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (a *StdSignatureAggregator) AggregateSignatures(ctx context.Context, state

// If operator is not in quorum, skip
if !ok {
a.Logger.Error("Operator not found in quorum", "operatorID", operatorIDHex, "operatorAddress", operatorAddr, "socket", socket)
a.Logger.Error("Operator not found in quorum", "operatorID", operatorIDHex, "operatorAddress", operatorAddr, "socket", socket, "quorumID", id)
continue
}

Expand Down
2 changes: 2 additions & 0 deletions disperser/batcher/batcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"math"
"math/big"
"slices"
"time"

"github.com/Layr-Labs/eigenda/common"
Expand Down Expand Up @@ -426,6 +427,7 @@ func (b *Batcher) HandleSingleBatch(ctx context.Context) error {
for quorumID := range batch.State.Operators {
quorumIDs = append(quorumIDs, quorumID)
}
slices.Sort(quorumIDs)

stageTimer = time.Now()
aggSig, err := b.Aggregator.AggregateSignatures(ctx, batch.State, quorumIDs, headerHash, update)
Expand Down

0 comments on commit d6cb34e

Please sign in to comment.