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

Method Remain

txnpool/common/transaction_pool.go:254–265  ·  view source on GitHub ↗

Remain returns the remaining tx list to cleanup

()

Source from the content-addressed store, hash-verified

252
253// Remain returns the remaining tx list to cleanup
254func (tp *TXPool) Remain() []*types.Transaction {
255 tp.Lock()
256 defer tp.Unlock()
257
258 txList := make([]*types.Transaction, 0, len(tp.txList))
259 for _, txEntry := range tp.txList {
260 txList = append(txList, txEntry.Tx)
261 delete(tp.txList, txEntry.Tx.Hash())
262 }
263
264 return txList
265}

Callers 1

cleanTransactionListMethod · 0.80

Calls 1

HashMethod · 0.65

Tested by

no test coverage detected