diff options
| author | Adam Soltys <[email protected]> | 2020-05-14 20:45:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-05-14 20:45:18 -0700 |
| commit | b45deffeda2f616453b8284dcfb78d65a48b858e (patch) | |
| tree | 96a6f250eb9404082891737f4925b8c4d1775fb7 /index.js | |
| parent | a9a061656668965fbf627ae73165d361d8ca9183 (diff) | |
| download | coinos-server-b45deffeda2f616453b8284dcfb78d65a48b858e.tar.gz coinos-server-b45deffeda2f616453b8284dcfb78d65a48b858e.zip | |
support opt-in to the different networks
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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()); |
