From b45deffeda2f616453b8284dcfb78d65a48b858e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 14 May 2020 20:45:18 -0700 Subject: support opt-in to the different networks --- index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'index.js') diff --git a/index.js b/index.js index 1c1bddd2..37e1b237 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,10 @@ const express = require("express"); l = require("pino")(); config = require("./config"); +networks = []; +if (config.bitcoin) networks.push('bitcoin'); +if (config.liquid) networks.push('liquid'); +if (config.lna) networks.push('lightning'); SATS = 100000000; toSats = (n) => parseInt((n * SATS).toFixed()); -- cgit v1.2.3