Browse Source

send BalanceUpdated notification as global

activeAddress
Ivan Socolsky 9 years ago
parent
commit
f2c29d8dee
  1. 4
      lib/server.js

4
lib/server.js

@ -1101,7 +1101,9 @@ WalletService.prototype.getBalance = function(opts, cb) {
if (err) return;
if (!_.isEqual(partialBalance, fullBalance)) {
log.debug('Cache miss: balance in active addresses differs from final balance');
self._notify('BalanceUpdated', fullBalance);
self._notify('BalanceUpdated', fullBalance, {
isGlobal: true
});
}
});
}, 1);

Loading…
Cancel
Save