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

Method Get

core/tx_pool.go:989–991  ·  view source on GitHub ↗

Get returns a transaction if it is contained in the pool and nil otherwise.

(hash common.Hash)

Source from the content-addressed store, hash-verified

987// Get returns a transaction if it is contained in the pool
988// and nil otherwise.
989func (pool *TxPool) Get(hash common.Hash) *types.Transaction {
990 return pool.all.Get(hash)
991}
992
993// removeTx removes a single transaction from the queue, moving all subsequent
994// transactions back to the future queue.

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected