putTxPool adds a valid transaction to the tx pool and removes it from the pending list.
(pt *pendingTx)
| 166 | // putTxPool adds a valid transaction to the tx pool and removes it from |
| 167 | // the pending list. |
| 168 | func (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. |
| 179 | func (worker *txPoolWorker) verifyTx(tx *tx.Transaction) { |
no test coverage detected