Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 376c2ff

Browse files
valentinewallacetanx
authored andcommitted
Use different ports for lnd/grpc in case a user already has an lnd node running on localhost
1 parent 3443585 commit 376c2ff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

public/electron.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const {
1212
NETWORK,
1313
LND_PORT,
1414
LND_PEER_PORT,
15+
LND_REST_PORT,
1516
LND_INIT_DELAY,
1617
BTCD_MINING_ADDRESS,
1718
} = require('../src/config');
@@ -140,6 +141,7 @@ const startLnd = async () => {
140141
lndSettingsDir,
141142
lndPort: LND_PORT,
142143
lndPeerPort: LND_PEER_PORT,
144+
lndRestPort: LND_REST_PORT,
143145
logger: Logger,
144146
lndArgs,
145147
});

src/config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ module.exports.LND_INIT_DELAY = 5000;
77
module.exports.NOTIFICATION_DELAY = 5000;
88
module.exports.RATE_DELAY = 15 * 60 * 1000;
99

10-
module.exports.LND_PORT = 10009;
11-
module.exports.LND_PEER_PORT = 10019;
10+
module.exports.LND_PORT = 10006;
11+
module.exports.LND_PEER_PORT = 10016;
12+
module.exports.LND_REST_PORT = 8086;
13+
1214
module.exports.NETWORK = 'testnet';
1315
module.exports.BTCD_MINING_ADDRESS = 'rfu4i1Mo2NF7TQsN9bMVLFSojSzcyQCEH5';
1416

0 commit comments

Comments
 (0)