diff options
| author | Adam Soltys <[email protected]> | 2021-05-13 02:24:05 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-05-13 02:24:05 -0400 |
| commit | 4d2379b801ed0a95e8538a64873a0be503e74672 (patch) | |
| tree | 8114688e98443e0ab536e7367eecb2f5d40aafe0 /routes/lightning | |
| parent | 7d6d6ca74f1f271427c271382fff49446aaa1895 (diff) | |
| download | coinos-server-4d2379b801ed0a95e8538a64873a0be503e74672.tar.gz coinos-server-4d2379b801ed0a95e8538a64873a0be503e74672.zip | |
confidential to non-confidential liquid conversion
Diffstat (limited to 'routes/lightning')
| -rw-r--r-- | routes/lightning/receive.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 8778bb22..325f7092 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -18,6 +18,7 @@ const handlePayment = async msg => { const { text: hash, currency, memo, rate, tip, user_id } = invoice; const amount = parseInt(msg.amt_paid_sat) - tip; + if (amount > 10000000 || amount < 0) throw new Error("amount out of range"); account = await db.Account.findOne({ where: { |
