getStats returns the transaction statistics
()
| 584 | |
| 585 | // getStats returns the transaction statistics |
| 586 | func (s *TXPoolServer) getStats() []uint64 { |
| 587 | s.stats.RLock() |
| 588 | defer s.stats.RUnlock() |
| 589 | ret := make([]uint64, 0, len(s.stats.count)) |
| 590 | for _, v := range s.stats.count { |
| 591 | ret = append(ret, v) |
| 592 | } |
| 593 | return ret |
| 594 | } |
| 595 | |
| 596 | // checkTx checks whether a transaction is in the pending list or |
| 597 | // the transacton pool |