MCPcopy Create free account
hub / github.com/CPChain/chain / Stats

Method Stats

core/tx_pool.go:592–597  ·  view source on GitHub ↗

Stats retrieves the current pool stats, namely the number of pending and the number of queued (non-executable) transactions.

()

Source from the content-addressed store, hash-verified

590// Stats retrieves the current pool stats, namely the number of pending and the
591// number of queued (non-executable) transactions.
592func (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.

Calls 1

statsMethod · 0.95