From 125daf2a6f829c28c72d3ba218bc443a7bda57fb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 9 Aug 2021 21:01:03 -0700 Subject: fix variable assignment --- routes/payments.js | 1 - 1 file changed, 1 deletion(-) diff --git a/routes/payments.js b/routes/payments.js index efb01079..70b711da 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -96,7 +96,6 @@ ah(async () => { if (config.lna.clightning) { lna = require("clightning-client")(config.lna.dir); } else { - lnd = require("../lib/lnd"); lna = lnd.default; lnp = [ "addInvoice", -- cgit v1.2.3 From 0be505ce1c6c6304a1a55ccf05ac5ff2f5361f47 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 9 Aug 2021 21:05:23 -0700 Subject: log failed tx --- routes/assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/assets.js b/routes/assets.js index 939eb76c..0a71bbb8 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -157,7 +157,7 @@ app.post( const brt = await lq.blindRawTransaction(hex, true, [], false); const srt = await lq.signRawTransactionWithWallet(brt); const allowed = (await lq.testMempoolAccept([srt.hex]))[0].allowed; - if (!allowed) throw new Error("issuance rejected by mempool"); + if (!allowed) throw new Error("issuance rejected by mempool", srt.hex); const txid = await lq.sendRawTransaction(srt.hex); await db.transaction(async transaction => { -- cgit v1.2.3 From a1aa61028234a47e953e8b8f85fd43b214f5670e Mon Sep 17 00:00:00 2001 From: Derrick Schwabe Date: Tue, 10 Aug 2021 22:54:50 -0600 Subject: README update; sample.override.yml no longer in repo, add mysql "CREATE DATABASE coinos;" step --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b2dfa979..8803d7cf 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,8 @@ This repository contains the code for the backend API server which is implemente cp -rf sampleconfig ./config cp .env.sample .env cp fx.sample fx - cp sample.override.yml docker-compose.override.yml docker-compose up -d --force-recreate maria + docker exec -i mariadb mysql -u root -ppassword -e "CREATE DATABASE coinos;" docker exec -i mariadb mysql -u root -ppassword < db/schema.sql docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --remove-orphans -- cgit v1.2.3