optimize tipset Equals func

This commit is contained in:
zgfzgf 2020-09-27 09:58:37 +08:00
parent 2c1d96bcaa
commit 70071e273d

View File

@ -167,6 +167,10 @@ func (ts *TipSet) Equals(ots *TipSet) bool {
return false
}
if ts.height != ots.height {
return false
}
if len(ts.blks) != len(ots.blks) {
return false
}