Skip to content

Commit 461318e

Browse files
authored
Report hashing error from v1 batcher dispatcher (#1247)
1 parent 1d3a6c5 commit 461318e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

disperser/batcher/grpc/dispatcher.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package dispatcher
33
import (
44
"context"
55
"errors"
6+
"fmt"
67
"time"
78

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

0 commit comments

Comments
 (0)