Overlaps returns whether the transaction specified has the same nonce as one already contained within the list.
(tx *types.Transaction)
| 291 | // Overlaps returns whether the transaction specified has the same nonce as one |
| 292 | // already contained within the list. |
| 293 | func (l *txList) Overlaps(tx *types.Transaction) bool { |
| 294 | return l.txs.Get(tx.Nonce()) != nil |
| 295 | } |
| 296 | |
| 297 | // Add tries to insert a new transaction into the list, returning whether the |
| 298 | // transaction was accepted, and if yes, any previous transaction it replaced. |