Browse Source

use blocktime if present

activeAddress
Matias Alejo Garcia 9 years ago
parent
commit
eb4c1fda03
  1. 6
      lib/server.js

6
lib/server.js

@ -1701,11 +1701,15 @@ WalletService.prototype._normalizeTxHistory = function(txs) {
}
});
var t = tx.time; // blocktime
if (!t || _.isNaN(t)) t = tx.firstSeenTs;
if (!t || _.isNaN(t)) t = now;
return {
txid: tx.txid,
confirmations: tx.confirmations,
fees: parseInt((tx.fees * 1e8).toFixed(0)),
time: tx.firstSeenTs || (!_.isNaN(tx.time) ? tx.time : now) || now,
time: t,
inputs: inputs,
outputs: outputs,
};

Loading…
Cancel
Save