code: func (s *server) TransactionConfirmed(tx *btcutil.Tx) {
  	// Rebroadcasting is only necessary when the RPC server is active.
  	if s.rpcServer == nil {
  		return
  	}
  
  	iv := wire.NewInvVect(wire.InvTypeTx, tx.Hash())
  	s.RemoveRebroadcastInventory(iv)
  }
docs: // Transaction has one confirmation on the main chain. Now we can mark it as no
  // longer needing rebroadcasting.