feat(send): txs now auto-sent on session timeout (machine not required)
This commit is contained in:
parent
bc4bd456da
commit
43cf451ba4
1 changed files with 4 additions and 1 deletions
|
|
@ -182,7 +182,10 @@ exports.trade = function trade(rawTrade, deviceFingerprint) {
|
|||
sessions[deviceFingerprint] = {
|
||||
timestamp: Date.now(),
|
||||
reaper: setTimeout(function() {
|
||||
delete sessions[deviceFingerprint];
|
||||
db.getTransaction(rawTrade.txId, function(err, tx) {
|
||||
_sendBitcoins(tx, function() { });
|
||||
delete sessions[deviceFingerprint];
|
||||
});
|
||||
}, SESSION_TIMEOUT)
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue