optimize tipset Equals func
This commit is contained in:
parent
2c1d96bcaa
commit
70071e273d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user