code: func (mp *TxPool) RemoveTransaction(tx *btcutil.Tx, removeRedeemers bool) {
  	// Protect concurrent access.
  	mp.mtx.Lock()
  	mp.removeTransaction(tx, removeRedeemers)
  	mp.mtx.Unlock()
  }
docs: // RemoveTransaction removes the passed transaction from the mempool. When the
  // removeRedeemers flag is set, any transactions that redeem outputs from the
  // removed transaction will also be removed recursively from the mempool, as
  // they would otherwise become orphans.
  //
  // This function is safe for concurrent access.