WIP
This commit is contained in:
parent
eabf32daf5
commit
7055104218
4 changed files with 69 additions and 153 deletions
|
|
@ -276,7 +276,7 @@ function _sendCoins (toAddress, cryptoAtoms, cryptoCode, cb) {
|
|||
}
|
||||
}
|
||||
|
||||
function executeTx (session, tx, authority, cb) {
|
||||
function executeTx (session, tx, cb) {
|
||||
db.addOutgoingTx(session, tx, function (err) {
|
||||
if (err) {
|
||||
logger.error(err)
|
||||
|
|
@ -292,7 +292,7 @@ function executeTx (session, tx, authority, cb) {
|
|||
logger.error(_err)
|
||||
toSend = {cryptoAtoms: new BigNumber(0), fiat: 0}
|
||||
}
|
||||
db.sentCoins(session, tx, authority, toSend, fee, _err, txHash)
|
||||
db.sentCoins(session, tx, toSend, fee, _err, txHash)
|
||||
|
||||
if (_err) return cb(_err)
|
||||
|
||||
|
|
@ -350,7 +350,7 @@ exports.recordPing = function recordPing (session, rec, cb) {
|
|||
|
||||
exports.sendCoins = function sendCoins (session, rawTx, cb) {
|
||||
var _session = {id: rawTx.sessionId || session.id, fingerprint: session.fingerprint}
|
||||
executeTx(_session, rawTx, 'machine', cb)
|
||||
executeTx(_session, rawTx, cb)
|
||||
}
|
||||
|
||||
exports.cashOut = function cashOut (session, tx, cb) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue