Skip to content

Commit

Permalink
fix(node): corev2 dup import with diff alias (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen authored Jan 28, 2025
1 parent 98e2139 commit 82e38f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions disperser/apiserver/disperse_blob_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ func (s *DispersalServerV2) validateDispersalRequest(ctx context.Context, req *p
return api.NewErrorInvalidArg("blob header must contain commitments")
}

if blobHeaderProto.GetCommitment() == nil {
return api.NewErrorInvalidArg("blob header must contain a commitment")
}
commitmentLength := blobHeaderProto.GetCommitment().GetLength()
if commitmentLength == 0 || commitmentLength != encoding.NextPowerOf2(commitmentLength) {
return api.NewErrorInvalidArg("invalid commitment length, must be a power of 2")
Expand Down
5 changes: 2 additions & 3 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"github.com/Layr-Labs/eigenda/core/eth"
"github.com/Layr-Labs/eigenda/core/indexer"
corev2 "github.com/Layr-Labs/eigenda/core/v2"
v2 "github.com/Layr-Labs/eigenda/core/v2"

"github.com/Layr-Labs/eigensdk-go/logging"
"github.com/Layr-Labs/eigensdk-go/metrics"
Expand Down Expand Up @@ -395,7 +394,7 @@ func (n *Node) RefreshOnchainState(ctx context.Context) error {
blobParams, err := n.Transactor.GetAllVersionedBlobParams(ctx)
if err == nil {
if existingBlobParams == nil || !existingBlobParams.Equal(blobParams) {
n.BlobVersionParams.Store(v2.NewBlobVersionParameterMap(blobParams))
n.BlobVersionParams.Store(corev2.NewBlobVersionParameterMap(blobParams))
}
} else {
n.Logger.Error("error fetching blob params", "err", err)
Expand All @@ -407,7 +406,7 @@ func (n *Node) RefreshOnchainState(ctx context.Context) error {
continue
}

existingURLs := map[v2.RelayKey]string{}
existingURLs := map[corev2.RelayKey]string{}
if existingRelayClient != nil {
existingURLs = existingRelayClient.GetSockets()
}
Expand Down

0 comments on commit 82e38f0

Please sign in to comment.