lndhub/bitcoin.js
Aaron Dewes f0493d595f
Umbrel support (#141)
* Don't require BTC core connection
* Docker: Don't clone, but use local repo
* Add GitHub workflows
* Allow to overwrite hostname
* chore: update dependencies
* Get tor URL from env
2021-02-24 15:17:22 +00:00

12 lines
292 B
JavaScript

// setup bitcoind rpc
const config = require('./config');
let jayson = require('jayson/promise');
let url = require('url');
if (config.bitcoind) {
let rpc = url.parse(config.bitcoind.rpc);
rpc.timeout = 15000;
module.exports = jayson.client.http(rpc);
} else {
module.exports = {};
}