diff options
| author | Adam Soltys <[email protected]> | 2023-02-08 16:47:32 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-08 16:47:32 -0800 |
| commit | 12dcd267bd2d23439afcbd493fda6f9d77035c4a (patch) | |
| tree | afe187ef3bcaeb2450a5cdbae9de6669cb004721 /routes/lnurl.js | |
| parent | 7de7a87dd4f014f2a4f0aa405a6ba4a1a6c9f208 (diff) | |
| download | coinos-server-12dcd267bd2d23439afcbd493fda6f9d77035c4a.tar.gz coinos-server-12dcd267bd2d23439afcbd493fda6f9d77035c4a.zip | |
invoice requests
Diffstat (limited to 'routes/lnurl.js')
| -rw-r--r-- | routes/lnurl.js | 7 |
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 })); |
