Fixed default path
This commit is contained in:
parent
bd6c0c2a56
commit
13e5610b4f
1 changed files with 1 additions and 3 deletions
|
|
@ -2,8 +2,6 @@ const os = require("os");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const platform = os.platform();
|
const platform = os.platform();
|
||||||
const homeDir = os.homedir();
|
const homeDir = os.homedir();
|
||||||
// @ts-ignore
|
|
||||||
const rootFolder = process.resourcesPath || __dirname
|
|
||||||
|
|
||||||
const getLndDirectory = () => {
|
const getLndDirectory = () => {
|
||||||
if (platform === "darwin") {
|
if (platform === "darwin") {
|
||||||
|
|
@ -37,7 +35,7 @@ module.exports = (mainnet = false) => {
|
||||||
sessionMaxAge: 300000,
|
sessionMaxAge: 300000,
|
||||||
lndAddress: "127.0.0.1:9735",
|
lndAddress: "127.0.0.1:9735",
|
||||||
maxNumRoutesToQuery: 20,
|
maxNumRoutesToQuery: 20,
|
||||||
lndProto: parsePath(`${rootFolder}/rpc.proto`),
|
lndProto: parsePath(`${__dirname}/rpc.proto`),
|
||||||
lndHost: "localhost:10009",
|
lndHost: "localhost:10009",
|
||||||
lndCertPath: parsePath(`${lndDirectory}/tls.cert`),
|
lndCertPath: parsePath(`${lndDirectory}/tls.cert`),
|
||||||
macaroonPath: parsePath(
|
macaroonPath: parsePath(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue