From dd0e0bedf08c9da5287088f385207b360fcb2e52 Mon Sep 17 00:00:00 2001 From: tenthirtyone Date: Tue, 15 Aug 2017 03:19:21 -0400 Subject: [PATCH] update tx fees div 1e8 --- server/lib/api/transaction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/lib/api/transaction.js b/server/lib/api/transaction.js index eb89130..05036bf 100644 --- a/server/lib/api/transaction.js +++ b/server/lib/api/transaction.js @@ -59,7 +59,7 @@ module.exports = function transactionAPI(router) { blocktime: body.ps, locktime: body.locktime, blockhash: body.block, - fees: body.fee, + fees: body.fee / 1e8, valueOut: body.outputs.reduce((sum, output) => sum + output.value, 0) / 1e8, vin: body.inputs.map(input => ({ addr: input.coin ? input.coin.address : '', @@ -93,7 +93,7 @@ module.exports = function transactionAPI(router) { pagesTotal: 1, txs: body.txs.map(tx => ({ txid: tx.hash, - fees: tx.fee, + fees: tx.fee / 1e8, valueOut: tx.outputs.reduce((sum, output) => sum + output.value, 0) / 1e8, vin: tx.inputs.map(input => ({ addr: input.coin ? input.coin.address : '', @@ -125,7 +125,7 @@ module.exports = function transactionAPI(router) { pagesTotal: 1, txs: body.map(tx => ({ txid: tx.hash, - fees: tx.fee, + fees: tx.fee / 1e8, valueOut: tx.outputs.reduce((sum, output) => sum + output.value, 0) / 1e8, vin: tx.inputs.map(input => ({ addr: input.coin ? input.coin.address : '',