Flatten creates a nonce-sorted slice of transactions based on the loosely sorted internal representation. The result of the sorting is cached in case it's requested again before any modifications are made to the contents.
()
| 411 | // sorted internal representation. The result of the sorting is cached in case |
| 412 | // it's requested again before any modifications are made to the contents. |
| 413 | func (l *txList) Flatten() types.Transactions { |
| 414 | return l.txs.Flatten() |
| 415 | } |
| 416 | |
| 417 | // AllBefore returns a batch of transactions added before the given time. |
| 418 | func (l *txList) AllBefore(t time.Time) []types.Transactions { |