modify tipset Equals

This commit is contained in:
zgfzgf 2020-09-27 10:17:06 +08:00
parent 70071e273d
commit 04876c663e

View File

@ -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
} }
} }