Remain returns the remaining tx list to cleanup
()
| 252 | |
| 253 | // Remain returns the remaining tx list to cleanup |
| 254 | func (tp *TXPool) Remain() []*types.Transaction { |
| 255 | tp.Lock() |
| 256 | defer tp.Unlock() |
| 257 | |
| 258 | txList := make([]*types.Transaction, 0, len(tp.txList)) |
| 259 | for _, txEntry := range tp.txList { |
| 260 | txList = append(txList, txEntry.Tx) |
| 261 | delete(tp.txList, txEntry.Tx.Hash()) |
| 262 | } |
| 263 | |
| 264 | return txList |
| 265 | } |
no test coverage detected