diff options
| author | Adam Soltys <[email protected]> | 2022-08-24 21:25:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-24 21:25:51 -0700 |
| commit | cdce31ac0ba880a0d61d7006bf1f02cf8b798b21 (patch) | |
| tree | 2dc12fb726a9d7fe7b577f7b4231cc14ddd1e1b5 | |
| parent | ec0648629d74899f84fd26370a6548995245cfa6 (diff) | |
| download | coinos-server-cdce31ac0ba880a0d61d7006bf1f02cf8b798b21.tar.gz coinos-server-cdce31ac0ba880a0d61d7006bf1f02cf8b798b21.zip | |
generate more blocks
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | routes/invoices.js | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -21,7 +21,8 @@ docker run -it -v $(pwd):/app --entrypoint pnpm asoltys/coinos-server i docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d docker exec -i mariadb mysql -u root -ppassword < db/schema.sql docker exec -it bitcoin bitcoin-cli createwallet coinos -docker exec -it bitcoin bitcoin-cli generatetoaddress 1 bcrt1qwhrhu9feqkvmgdph0a4p248zzmy4grjr38a8uq +docker exec -it bitcoin bitcoin-cli rescanblockchain +docker exec -it bitcoin bitcoin-cli generatetoaddress 500 $(docker exec -it bitcoin bitcoin-cli getnewaddress "" "p2sh-segwit") docker exec -it liquid elements-cli createwallet coinos docker exec -it liquid elements-cli rescanblockchain docker exec -it liquid elements-cli sendtoaddress AzpsKhC6xE9FEK4aWAzMnbvueMLiSa5ym1xpuYogFkHzWgMHSt8B79aNNbFppQzCSQ2yZ9E4nL6RQJU7 1000000 diff --git a/routes/invoices.js b/routes/invoices.js index ccf741f5..02a8308d 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -31,8 +31,6 @@ app.post( let { liquidAddress, id, invoice, user, tx } = req.body; let { blindkey } = invoice; - if (invoice.text.text) invoice.text = invoice.text.text; - if (invoice.amount < 0) throw new Error("amount out of range"); if (invoice.tip > invoice.amount || invoice.tip > 1000000 || invoice.tip < 0) throw new Error("tip amount out of range"); |
