code: func (view *UtxoViewpoint) connectTransactions(block *btcutil.Block, stxos *[]SpentTxOut) error {
  	for _, tx := range block.Transactions() {
  		err := view.connectTransaction(tx, block.Height(), stxos)
  		if err != nil {
  			return err
  		}
  	}
  
  	// Update the best hash for view to include this block since all of its
  	// transactions have been connected.
  	view.SetBestHash(block.Hash())
  	return nil
  }
docs: // connectTransactions updates the view by adding all new utxos created by all
  // of the transactions in the passed block, marking all utxos the transactions
  // spend as spent, and setting the best hash for the view to the passed block.
  // In addition, when the 'stxos' argument is not nil, it will be updated to
  // append an entry for each spent txout.