From ca7224037fb01ded28b51d765e040d5cad36183b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 18 May 2022 22:53:43 -0400 Subject: auto confirm payments --- routes/send.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/send.js') diff --git a/routes/send.js b/routes/send.js index 5f1151c5..4c8afa34 100644 --- a/routes/send.js +++ b/routes/send.js @@ -61,7 +61,7 @@ module.exports = ah(async (req, res, next) => { rate: app.get("rates")[user.currency], currency: user.currency, confirmed: true, - hash: username ? `Payment to ${username}` : "Internal Transfer", + hash: `#${uuidv4().substr(0, 6)} ${(username ? `Payment to ${username}` : "Internal Transfer")}`, network: "COINOS" }; @@ -165,7 +165,7 @@ module.exports = ah(async (req, res, next) => { rate: app.get("rates")[recipient.currency] * spread, currency: recipient.currency, confirmed: true, - hash: "Payment from " + user.username, + hash: `#${uuidv4().substr(0,6)} Payment from ${user.username}`, memo, network: "COINOS", received: true -- cgit v1.2.3