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

Function newTxLookup

core/tx_pool.go:1336–1340  ·  view source on GitHub ↗

newTxLookup returns a new txLookup structure.

()

Source from the content-addressed store, hash-verified

1334
1335// newTxLookup returns a new txLookup structure.
1336func newTxLookup() *txLookup {
1337 return &txLookup{
1338 all: make(map[common.Hash]*types.Transaction),
1339 }
1340}
1341
1342// Range calls f on each key and value present in the map.
1343func (t *txLookup) Range(f func(hash common.Hash, tx *types.Transaction) bool) {

Callers 1

NewTxPoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected