merge upstream
This commit is contained in:
commit
cd88396421
2 changed files with 10 additions and 3 deletions
|
|
@ -409,7 +409,8 @@ function stopTrader() {
|
|||
}
|
||||
|
||||
function pollBalance(cb) {
|
||||
|
||||
logger.debug('collecting balance');
|
||||
|
||||
var jobs = {
|
||||
transferBalance: walletPlugin.balance
|
||||
};
|
||||
|
|
@ -426,6 +427,7 @@ function pollBalance(cb) {
|
|||
return cb && cb(err);
|
||||
}
|
||||
|
||||
logger.debug('Balance update:', balance);
|
||||
balance.timestamp = Date.now();
|
||||
lastBalances = balance;
|
||||
|
||||
|
|
@ -434,12 +436,15 @@ function pollBalance(cb) {
|
|||
}
|
||||
|
||||
function pollRate(cb) {
|
||||
logger.debug('polling for rates (%s)', tickerPlugin.NAME);
|
||||
|
||||
tickerPlugin.ticker(deviceCurrency, function(err, resRates) {
|
||||
if (err) {
|
||||
logger.error(err);
|
||||
return cb && cb(err);
|
||||
}
|
||||
|
||||
logger.debug('got rates: %j', resRates);
|
||||
resRates.timestamp = new Date();
|
||||
lastRates = resRates;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "lamassu-server",
|
||||
"description": "bitcoin atm client server protocol module",
|
||||
"keywords": [],
|
||||
"version": "2.2.10",
|
||||
"version": "2.2.11",
|
||||
"license": "unlicense",
|
||||
"author": "Lamassu (https://lamassu.is)",
|
||||
"engines": {
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
"lamassu-coinapult": "^0.4.5",
|
||||
"lamassu-coinfloor": "^0.1.2",
|
||||
"lamassu-bitgo": "^0.1.3",
|
||||
"lamassu-snapcard": "^0.1.7",
|
||||
"lodash": "^2.4.1",
|
||||
"minimist": "0.0.8",
|
||||
"node-uuid": "^1.4.2",
|
||||
|
|
@ -39,7 +40,8 @@
|
|||
},
|
||||
"bin": {
|
||||
"lamassu-server": "./bin/lamassu-server",
|
||||
"ssu-raqia": "./bin/ssu-raqia"
|
||||
"ssu-raqia": "./bin/ssu-raqia",
|
||||
"ssu": "./bin/ssu"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha --recursive test"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue