aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-05-31 11:51:23 -0500
committerAdrien Hopkins <[email protected]>2022-05-31 11:51:23 -0500
commitbfe6091feeabdb9562250cf0544863bc4f035c09 (patch)
tree343c1b631a8476c961c07ce97a4e7d13bf044e19
parent66782a32054b98ffef1f5129d719acd8de1abbe2 (diff)
downloadcoinos-server-bfe6091feeabdb9562250cf0544863bc4f035c09.tar.gz
coinos-server-bfe6091feeabdb9562250cf0544863bc4f035c09.zip
Revert code commenting
-rw-r--r--routes/bitcoin/send.js8
1 files 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;