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

Method GetTransactionCount

txnpool/common/transaction_pool.go:193–197  ·  view source on GitHub ↗

GetTransactionCount returns the tx number of the pool.

()

Source from the content-addressed store, hash-verified

191
192// GetTransactionCount returns the tx number of the pool.
193func (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

Callers 3

TestTxPoolFunction · 0.95
getTxCountMethod · 0.80
getTransactionCountMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestTxPoolFunction · 0.76