aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lnurl.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-08 16:47:32 -0800
committerAdam Soltys <[email protected]>2023-02-08 16:47:32 -0800
commit12dcd267bd2d23439afcbd493fda6f9d77035c4a (patch)
treeafe187ef3bcaeb2450a5cdbae9de6669cb004721 /routes/lnurl.js
parent7de7a87dd4f014f2a4f0aa405a6ba4a1a6c9f208 (diff)
downloadcoinos-server-12dcd267bd2d23439afcbd493fda6f9d77035c4a.tar.gz
coinos-server-12dcd267bd2d23439afcbd493fda6f9d77035c4a.zip
invoice requests
Diffstat (limited to 'routes/lnurl.js')
-rw-r--r--routes/lnurl.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 5494a5b0..687dab6e 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -86,17 +86,12 @@ export default {
["text/identifier", `${username}@${host}`]
]);
- let memo = crypto
- .createHash("sha256")
- .update(Buffer.from(metadata, "utf8"))
- .digest("hex");
-
({ text: pr } = await generate({
invoice: {
amount: Math.round(amount / 1000),
type: types.lightning
},
- memo,
+ memo: metadata,
user
}));