From a838978b3f3b2ab0bc51ac05cf89e10d717ba04c Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Fri, 4 Dec 2015 15:14:54 -0300 Subject: [PATCH] return null when totalBytesToSendMax cannot be evaluated (instead of 0) --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index a787a0d..9786c46 100644 --- a/lib/server.js +++ b/lib/server.js @@ -981,7 +981,7 @@ WalletService.prototype.getBalance = function(opts, cb) { if (err) { log.error('Could not compute size of send max transaction', err); } - balance.totalBytesToSendMax = size || 0; + balance.totalBytesToSendMax = size || null; return cb(null, balance); }); });