modify tipset Equals
This commit is contained in:
parent
70071e273d
commit
04876c663e
@ -171,12 +171,12 @@ func (ts *TipSet) Equals(ots *TipSet) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(ts.blks) != len(ots.blks) {
|
if len(ts.cids) != len(ots.cids) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, b := range ts.blks {
|
for i, cid := range ts.cids {
|
||||||
if b.Cid() != ots.blks[i].Cid() {
|
if cid != ots.cids[i] {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user