diff options
| author | Adrien Hopkins <[email protected]> | 2022-05-31 11:51:23 -0500 |
|---|---|---|
| committer | Adrien Hopkins <[email protected]> | 2022-05-31 11:51:23 -0500 |
| commit | bfe6091feeabdb9562250cf0544863bc4f035c09 (patch) | |
| tree | 343c1b631a8476c961c07ce97a4e7d13bf044e19 | |
| parent | 66782a32054b98ffef1f5129d719acd8de1abbe2 (diff) | |
| download | coinos-server-bfe6091feeabdb9562250cf0544863bc4f035c09.tar.gz coinos-server-bfe6091feeabdb9562250cf0544863bc4f035c09.zip | |
Revert code commenting
| -rw-r--r-- | routes/bitcoin/send.js | 8 |
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; |
