* 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
12 lines
292 B
JavaScript
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 = {};
|
|
}
|