From bfe6091feeabdb9562250cf0544863bc4f035c09 Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Tue, 31 May 2022 11:51:23 -0500 Subject: Revert code commenting --- routes/bitcoin/send.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js index 526a89d0..326518a0 100644 --- a/routes/bitcoin/send.js +++ b/routes/bitcoin/send.js @@ -26,11 +26,9 @@ module.exports = ah(async (req, res) => { let o = tx.vout[i]; total += toSats(o.value); - console.log(o.scriptPubKey.addresses[0]); - - // if (await isChange("bcrt1q3y0af2vezj4w66zw397hmrglf4pk38pet3wr8g")) { - // change += toSats(o.value); - // } + if (await isChange(o.scriptPubKey)) { + change += toSats(o.value); + } } total = total - change + fee; -- cgit v1.2.3