code: func (pool *TxPool) RemoveTransactions(txs types.Transactions) {
  	pool.mu.Lock()
  	defer pool.mu.Unlock()
  
  	var hashes []common.Hash
  	batch := pool.chainDb.NewBatch()
  	for _, tx := range txs {
  		hash := tx.Hash()
  		delete(pool.pending, hash)
  		batch.Delete(hash.Bytes())
  		hashes = append(hashes, hash)
  	}
  	batch.Write()
  	pool.relay.Discard(hashes)
  }
docs: // RemoveTransactions removes all given transactions from the pool.