Skip to content

Commit

Permalink
add variable port
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilph committed Sep 20, 2024
1 parent 22513ec commit fcfe9c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/backend/services/fulcrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const ElectrumClient = require("@lily-technologies/electrum-client");
const bitcoindService = require("services/bitcoind");

const FULCRUM_HOST = process.env.FULCRUM_HOST || "0.0.0.0";
const rpcClient = new ElectrumClient(50001, FULCRUM_HOST, "tcp");
const FULCRUM_PORT = parseInt(process.env.FULCRUM_PORT) || 50001;
const rpcClient = new ElectrumClient(FULCRUM_PORT, FULCRUM_HOST, "tcp");

async function getVersion() {
const initClient = await rpcClient.initElectrum({
Expand Down

0 comments on commit fcfe9c1

Please sign in to comment.