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

Method Remove

core/tx_pool.go:1379–1384  ·  view source on GitHub ↗

Remove removes a transaction from the lookup.

(hash common.Hash)

Source from the content-addressed store, hash-verified

1377
1378// Remove removes a transaction from the lookup.
1379func (t *txLookup) Remove(hash common.Hash) {
1380 t.lock.Lock()
1381 defer t.lock.Unlock()
1382
1383 delete(t.all, hash)
1384}

Callers 6

addMethod · 0.45
enqueueTxMethod · 0.45
promoteTxMethod · 0.45
removeTxMethod · 0.45
promoteExecutablesMethod · 0.45
demoteUnexecutablesMethod · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected