diff options
Diffstat (limited to 'bitcoinPayments.js')
| -rw-r--r-- | bitcoinPayments.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitcoinPayments.js b/bitcoinPayments.js index 90d7836a..abdc072d 100644 --- a/bitcoinPayments.js +++ b/bitcoinPayments.js @@ -71,9 +71,10 @@ module.exports = (app, bc, db, addresses, payments, emit) => { user.pending += o.value; } + user.address = await bc.getNewAddress("", "bech32"); + addresses[user.address] = user.username; await user.save(); emit(user.username, "user", user); - l("output:", o); const payment = await db.Payment.create({ user_id: user.id, |
