MCPcopy Create free account
hub / github.com/DNAProject/DNA / getStats

Method getStats

txnpool/proc/txnpool_server.go:586–594  ·  view source on GitHub ↗

getStats returns the transaction statistics

()

Source from the content-addressed store, hash-verified

584
585// getStats returns the transaction statistics
586func (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

Callers 1

ReceiveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected