code: func newChainView(tip *blockNode) *chainView {
  	// The mutex is intentionally not held since this is a constructor.
  	var c chainView
  	c.setTip(tip)
  	return &c
  }
docs: // newChainView returns a new chain view for the given tip block node.  Passing
  // nil as the tip will result in a chain view that is not initialized.  The tip
  // can be updated at any time via the setTip function.