MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / SetTxToTransferring

Function SetTxToTransferring

cmd/cql-eth-exchange/tx_record.go:240–245  ·  view source on GitHub ↗

SetTxToTransferring update the transaction to transferring state.

(db *gorp.DbMap, r *TxRecord, tx hash.Hash)

Source from the content-addressed store, hash-verified

238
239// SetTxToTransferring update the transaction to transferring state.
240func SetTxToTransferring(db *gorp.DbMap, r *TxRecord, tx hash.Hash) (err error) {
241 r.CQLTxHash = tx.String()
242 r.State = ExchangeStateTransferring
243 _, err = db.Update(r)
244 return
245}
246
247// SetTxConfirmed update the transaction to confirmed state.
248func SetTxConfirmed(db *gorp.DbMap, r *TxRecord) (err error) {

Callers 1

processPendingTxsMethod · 0.85

Calls 2

UpdateMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected