aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-01-27 05:13:33 +0000
committerAdam Soltys <[email protected]>2020-01-27 05:13:35 +0000
commite527ae46599e3328917a8d84fb49751c955d5cbd (patch)
tree1fd7e585e466a1246b9863bab8e48b9e74c277ee
parent4ea9df7cda9d0c8f320c46a6d3d46ecd8b3b0d8e (diff)
downloadcoinos-server-e527ae46599e3328917a8d84fb49751c955d5cbd.tar.gz
coinos-server-e527ae46599e3328917a8d84fb49751c955d5cbd.zip
use elements lib
-rw-r--r--liquidPayments.js3
-rw-r--r--sendLiquid.js1
2 files changed, 1 insertions, 3 deletions
diff --git a/liquidPayments.js b/liquidPayments.js
index eba2eb09..6498be40 100644
--- a/liquidPayments.js
+++ b/liquidPayments.js
@@ -3,7 +3,7 @@ const zmq = require("zeromq");
const config = require("./config");
const Sequelize = require("sequelize");
const BitcoinCore = require("bitcoin-core");
-const bitcoin = require("bitcoinjs-lib");
+const bitcoin = require("elementsjs-lib");
const l = console.log;
const zmqRawBlock = zmq.socket("sub");
@@ -111,7 +111,6 @@ module.exports = (app, db, addresses, payments, emit) => {
for (let i = 0; i < arr.length; i++) {
let hash = arr[i];
- l(hash);
let p = await db.Payment.findOne({
include: [{ model: db.User, as: "user" }],
where: { hash, confirmed: 0, received: 1 }
diff --git a/sendLiquid.js b/sendLiquid.js
index ae57b520..17fb2a2e 100644
--- a/sendLiquid.js
+++ b/sendLiquid.js
@@ -11,7 +11,6 @@ const bc = new BitcoinCore(config.liquid);
module.exports = (app, db, emit) => async (req, res) => {
let { address, amount } = req.body;
let rawtx, hex, fee;
- l(address, amount);
try {
amount = parseInt(amount);