diff options
| author | Adam Soltys <[email protected]> | 2020-03-28 23:13:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-03-28 23:13:13 -0700 |
| commit | a0422300e2b13896634eda12930959bc64ba7dc9 (patch) | |
| tree | 481915dc9e311d7dfc31d0b237b2c06ad5fa26a5 /routes/bitcoin/send.js | |
| parent | 5142c8cfcffd59d04ec18e67183a1866324d9209 (diff) | |
| download | coinos-server-a0422300e2b13896634eda12930959bc64ba7dc9.tar.gz coinos-server-a0422300e2b13896634eda12930959bc64ba7dc9.zip | |
handle tips and invoices better
Diffstat (limited to 'routes/bitcoin/send.js')
| -rw-r--r-- | routes/bitcoin/send.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js index d8a17f98..6ad518c7 100644 --- a/routes/bitcoin/send.js +++ b/routes/bitcoin/send.js @@ -32,6 +32,8 @@ module.exports = async (req, res) => { total = (total - change) + fee; let amount = total - fee; + l.info("attempting bitcoin payment", user.username, amount, fee); + try { await db.transaction(async transaction => { let { balance } = await db.User.findOne({ |
