txSortedMap is a nonce->transaction hash map with a heap based index to allow iterating over the contents in a nonce-incrementing way.
| 70 | // txSortedMap is a nonce->transaction hash map with a heap based index to allow |
| 71 | // iterating over the contents in a nonce-incrementing way. |
| 72 | type txSortedMap struct { |
| 73 | items map[uint64]*TimedTransaction // Hash map storing the transaction data |
| 74 | index *nonceHeap // Heap of nonces of all the stored transactions (non-strict mode) |
| 75 | cache types.Transactions // Cache of the transactions already sorted |
| 76 | } |
| 77 | |
| 78 | // newTxSortedMap creates a new nonce-sorted transaction map. |
| 79 | func newTxSortedMap() *txSortedMap { |
nothing calls this directly
no outgoing calls
no test coverage detected