Skip to content

Commit

Permalink
Report hashing error from v1 batcher dispatcher (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Feb 12, 2025
1 parent 1d3a6c5 commit 461318e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions disperser/batcher/grpc/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package dispatcher
import (
"context"
"errors"
"fmt"
"time"

commonpb "github.com/Layr-Labs/eigenda/api/grpc/common"
Expand Down Expand Up @@ -55,6 +56,13 @@ func (c *dispatcher) sendAllChunks(ctx context.Context, state *core.IndexedOpera
hasAnyBundles := false
batchHeaderHash, err := batchHeader.GetBatchHeaderHash()
if err != nil {
update <- core.SigningMessage{
Err: fmt.Errorf("failed to get batch header hash: %w", err),
Signature: nil,
Operator: id,
BatchHeaderHash: [32]byte{},
AttestationLatencyMs: -1,
}
return
}
for _, blob := range blobs {
Expand Down

0 comments on commit 461318e

Please sign in to comment.