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

Method Count

core/tx_pool.go:1363–1368  ·  view source on GitHub ↗

Count returns the current number of items in the lookup.

()

Source from the content-addressed store, hash-verified

1361
1362// Count returns the current number of items in the lookup.
1363func (t *txLookup) Count() int {
1364 t.lock.RLock()
1365 defer t.lock.RUnlock()
1366
1367 return len(t.all)
1368}
1369
1370// Add adds a transaction to the lookup.
1371func (t *txLookup) Add(tx *types.Transaction) {

Callers 15

showConfigsFunction · 0.45
RemovedMethod · 0.45
validateTxPoolInternalsFunction · 0.45
TestTransactionDroppingFunction · 0.45
addMethod · 0.45
NewTypeFunction · 0.45

Calls

no outgoing calls