Skip to content

Commit 82e38f0

Browse files
authored
fix(node): corev2 dup import with diff alias (#1169)
1 parent 98e2139 commit 82e38f0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

disperser/apiserver/disperse_blob_v2.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ func (s *DispersalServerV2) validateDispersalRequest(ctx context.Context, req *p
114114
return api.NewErrorInvalidArg("blob header must contain commitments")
115115
}
116116

117-
if blobHeaderProto.GetCommitment() == nil {
118-
return api.NewErrorInvalidArg("blob header must contain a commitment")
119-
}
120117
commitmentLength := blobHeaderProto.GetCommitment().GetLength()
121118
if commitmentLength == 0 || commitmentLength != encoding.NextPowerOf2(commitmentLength) {
122119
return api.NewErrorInvalidArg("invalid commitment length, must be a power of 2")

node/node.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
"github.com/Layr-Labs/eigenda/core/eth"
3636
"github.com/Layr-Labs/eigenda/core/indexer"
3737
corev2 "github.com/Layr-Labs/eigenda/core/v2"
38-
v2 "github.com/Layr-Labs/eigenda/core/v2"
3938

4039
"github.com/Layr-Labs/eigensdk-go/logging"
4140
"github.com/Layr-Labs/eigensdk-go/metrics"
@@ -395,7 +394,7 @@ func (n *Node) RefreshOnchainState(ctx context.Context) error {
395394
blobParams, err := n.Transactor.GetAllVersionedBlobParams(ctx)
396395
if err == nil {
397396
if existingBlobParams == nil || !existingBlobParams.Equal(blobParams) {
398-
n.BlobVersionParams.Store(v2.NewBlobVersionParameterMap(blobParams))
397+
n.BlobVersionParams.Store(corev2.NewBlobVersionParameterMap(blobParams))
399398
}
400399
} else {
401400
n.Logger.Error("error fetching blob params", "err", err)
@@ -407,7 +406,7 @@ func (n *Node) RefreshOnchainState(ctx context.Context) error {
407406
continue
408407
}
409408

410-
existingURLs := map[v2.RelayKey]string{}
409+
existingURLs := map[corev2.RelayKey]string{}
411410
if existingRelayClient != nil {
412411
existingURLs = existingRelayClient.GetSockets()
413412
}

0 commit comments

Comments
 (0)