newTxLookup returns a new txLookup structure.
()
| 1334 | |
| 1335 | // newTxLookup returns a new txLookup structure. |
| 1336 | func newTxLookup() *txLookup { |
| 1337 | return &txLookup{ |
| 1338 | all: make(map[common.Hash]*types.Transaction), |
| 1339 | } |
| 1340 | } |
| 1341 | |
| 1342 | // Range calls f on each key and value present in the map. |
| 1343 | func (t *txLookup) Range(f func(hash common.Hash, tx *types.Transaction) bool) { |