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

Method putTxPool

txnpool/proc/txnpool_worker.go:168–176  ·  view source on GitHub ↗

putTxPool adds a valid transaction to the tx pool and removes it from the pending list.

(pt *pendingTx)

Source from the content-addressed store, hash-verified

166// putTxPool adds a valid transaction to the tx pool and removes it from
167// the pending list.
168func (worker *txPoolWorker) putTxPool(pt *pendingTx) bool {
169 txEntry := &tc.TXEntry{
170 Tx: pt.tx,
171 Attrs: pt.ret,
172 }
173 worker.server.addTxList(txEntry)
174 worker.server.removePendingTx(pt.tx.Hash(), errors.ErrNoError)
175 return true
176}
177
178// verifyTx prepares a check request and sends it to the validators.
179func (worker *txPoolWorker) verifyTx(tx *tx.Transaction) {

Callers 1

handleRspMethod · 0.95

Calls 3

addTxListMethod · 0.80
removePendingTxMethod · 0.80
HashMethod · 0.65

Tested by

no test coverage detected