code: func (s *server) AnnounceNewTransactions(txns []*mempool.TxDesc) {
  	// Generate and relay inventory vectors for all newly accepted
  	// transactions.
  	s.relayTransactions(txns)
  
  	// Notify both websocket and getblocktemplate long poll clients of all
  	// newly accepted transactions.
  	if s.rpcServer != nil {
  		s.rpcServer.NotifyNewTransactions(txns)
  	}
  }
docs: // AnnounceNewTransactions generates and relays inventory vectors and notifies
  // both websocket and getblocktemplate long poll clients of the passed
  // transactions.  This function should be called whenever new transactions
  // are added to the mempool.