Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/filecoin-project/go-data-segment

go 1.23.0
go 1.24

require (
github.com/filecoin-project/go-fil-commcid v0.1.0
Expand Down
2 changes: 1 addition & 1 deletion merkletree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func newBareTree(leafs uint64) *TreeData {
// Then decoding the tree, bottom-up, starting with the leafs as the amount of nodes in one level defines the amount of nodes in its parent level
// NOTE that correctness of the tree is NOT validated as part of this method
func DeserializeTree(tree []byte) (*TreeData, error) {
if tree == nil || len(tree) < BytesInInt {
if len(tree) < BytesInInt {
return nil, xerrors.New("no tree encoded")
}
lvlSize := binary.LittleEndian.Uint64(tree[:BytesInInt])
Expand Down
Loading