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

Method getTxCount

txnpool/proc/txnpool_server.go:512–517  ·  view source on GitHub ↗

getTxCount returns current tx count, including pending and verified

()

Source from the content-addressed store, hash-verified

510
511// getTxCount returns current tx count, including pending and verified
512func (s *TXPoolServer) getTxCount() []uint32 {
513 ret := make([]uint32, 0)
514 ret = append(ret, uint32(s.txPool.GetTransactionCount()))
515 ret = append(ret, uint32(s.getPendingListSize()))
516 return ret
517}
518
519// getPendingTxs returns a currently pending tx list
520func (s *TXPoolServer) getPendingTxs(byCount bool) []*tx.Transaction {

Callers 1

ReceiveMethod · 0.80

Calls 2

getPendingListSizeMethod · 0.95
GetTransactionCountMethod · 0.80

Tested by

no test coverage detected