Skip to content

Commit

Permalink
refactor: use ipld ref to square size
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Jun 2, 2023
1 parent 1c7860d commit 4719e51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion share/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"go.opentelemetry.io/otel"

"github.com/celestiaorg/celestia-app/pkg/appconsts"
"github.com/celestiaorg/celestia-node/share/ipld"
"github.com/celestiaorg/nmt/namespace"
)

Expand All @@ -27,7 +28,7 @@ const (
var (
// MaxSquareSize is currently the maximum size supported for unerasured data in
// rsmt2d.ExtendedDataSquare.
MaxSquareSize = appconsts.SquareSizeUpperBound(appconsts.LatestVersion)
MaxSquareSize = ipld.MaxSquareSize
)

// Share contains the raw share data without the corresponding namespace.
Expand Down

0 comments on commit 4719e51

Please sign in to comment.