Skip to content
Merged
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
13 changes: 2 additions & 11 deletions chain/types/tipset.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"io"
"slices"
"sort"

"github.com/ipfs/go-cid"
Expand Down Expand Up @@ -172,17 +173,7 @@ func (ts *TipSet) Equals(ots *TipSet) bool {
return false
}

if len(ts.cids) != len(ots.cids) {
return false
}

for i, cid := range ts.cids {
if cid != ots.cids[i] {
return false
}
}

return true
return slices.Equal(ts.cids, ots.cids)
}

func (t *Ticket) Less(o *Ticket) bool {
Expand Down
Loading