Get returns a transaction if it is contained in the pool and nil otherwise.
(hash common.Hash)
| 987 | // Get returns a transaction if it is contained in the pool |
| 988 | // and nil otherwise. |
| 989 | func (pool *TxPool) Get(hash common.Hash) *types.Transaction { |
| 990 | return pool.all.Get(hash) |
| 991 | } |
| 992 | |
| 993 | // removeTx removes a single transaction from the queue, moving all subsequent |
| 994 | // transactions back to the future queue. |