code: func (c *chainView) Equals(other *chainView) bool {
  	c.mtx.Lock()
  	other.mtx.Lock()
  	equals := len(c.nodes) == len(other.nodes) && c.tip() == other.tip()
  	other.mtx.Unlock()
  	c.mtx.Unlock()
  	return equals
  }
docs: // Equals returns whether or not two chain views are the same.  Uninitialized
  // views (tip set to nil) are considered equal.
  //
  // This function is safe for concurrent access.