aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-05-18 22:53:43 -0400
committerAdam Soltys <[email protected]>2022-05-18 22:53:46 -0400
commitca7224037fb01ded28b51d765e040d5cad36183b (patch)
treeb9c6c9ffd89278d2a37a1d08de96019ab1f1e139 /routes
parent962807d8c7b31a18bbcb6c677047e057c0f519cc (diff)
downloadcoinos-server-ca7224037fb01ded28b51d765e040d5cad36183b.tar.gz
coinos-server-ca7224037fb01ded28b51d765e040d5cad36183b.zip
auto confirm payments
Diffstat (limited to 'routes')
-rw-r--r--routes/send.js4
1 files changed, 2 insertions, 2 deletions
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