Count returns the current number of items in the lookup.
()
| 1361 | |
| 1362 | // Count returns the current number of items in the lookup. |
| 1363 | func (t *txLookup) Count() int { |
| 1364 | t.lock.RLock() |
| 1365 | defer t.lock.RUnlock() |
| 1366 | |
| 1367 | return len(t.all) |
| 1368 | } |
| 1369 | |
| 1370 | // Add adds a transaction to the lookup. |
| 1371 | func (t *txLookup) Add(tx *types.Transaction) { |
no outgoing calls