diff options
| author | Adam Soltys <[email protected]> | 2023-09-03 20:48:31 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-09-03 20:48:35 -0700 |
| commit | 3aa200db295438827bfff48f80e3f4b25f44e8ea (patch) | |
| tree | a5520366ec430ed0b2cdf86f971bb006ffd5b0da /routes/invoices.js | |
| parent | 0d7574597d33bad78f4ebad3c38b956debb0e699 (diff) | |
| download | coinos-server-3aa200db295438827bfff48f80e3f4b25f44e8ea.tar.gz coinos-server-3aa200db295438827bfff48f80e3f4b25f44e8ea.zip | |
use bolt11 for invoice hash
Diffstat (limited to 'routes/invoices.js')
| -rw-r--r-- | routes/invoices.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/routes/invoices.js b/routes/invoices.js index a1ead582..9f2e4c99 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -9,10 +9,6 @@ import ln from "$lib/ln"; export default { async get({ params: { hash } }, res) { let pr; - if (hash.startsWith("ln")) { - ({ payment_hash: hash } = await ln.decode(hash)); - } - let invoice = await g(`invoice:${hash}`); if (invoice) { |
