code: func (s *rpcServer) NotifyNewTransactions(txns []*mempool.TxDesc) {
  	for _, txD := range txns {
  		// Notify websocket clients about mempool transactions.
  		s.ntfnMgr.NotifyMempoolTx(txD.Tx, true)
  
  		// Potentially notify any getblocktemplate long poll clients
  		// about stale block templates due to the new transaction.
  		s.gbtWorkState.NotifyMempoolTx(s.cfg.TxMemPool.LastUpdated())
  	}
  }
docs: // NotifyNewTransactions 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.