getPendingListSize return the length of the pending tx list.
()
| 227 | |
| 228 | // getPendingListSize return the length of the pending tx list. |
| 229 | func (s *TXPoolServer) getPendingListSize() int { |
| 230 | s.mu.Lock() |
| 231 | defer s.mu.Unlock() |
| 232 | return len(s.allPendingTxs) |
| 233 | } |
| 234 | |
| 235 | // getHeight return current block height |
| 236 | func (s *TXPoolServer) getHeight() uint32 { |