GetTransactionCount returns the tx number of the pool.
()
| 191 | |
| 192 | // GetTransactionCount returns the tx number of the pool. |
| 193 | func (tp *TXPool) GetTransactionCount() int { |
| 194 | tp.RLock() |
| 195 | defer tp.RUnlock() |
| 196 | return len(tp.txList) |
| 197 | } |
| 198 | |
| 199 | // GetUnverifiedTxs checks the tx list in the block from consensus, |
| 200 | // and returns verified tx list, unverified tx list, and |
no outgoing calls