Stats retrieves the current pool stats, namely the number of pending and the number of queued (non-executable) transactions.
()
| 590 | // Stats retrieves the current pool stats, namely the number of pending and the |
| 591 | // number of queued (non-executable) transactions. |
| 592 | func (pool *TxPool) Stats() (int, int) { |
| 593 | pool.mu.RLock() |
| 594 | defer pool.mu.RUnlock() |
| 595 | |
| 596 | return pool.stats() |
| 597 | } |
| 598 | |
| 599 | // stats retrieves the current pool stats, namely the number of pending and the |
| 600 | // number of queued (non-executable) transactions. |