Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions assets/script/setup_local_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ After initiating the wallet and setting your password close the app again.
```
btcd --txindex --simnet --rpcuser=kek --rpcpass=kek --datadir=data/btcd/data --logdir=data/btcd/logs

lnd --rpclisten=localhost:10009 --listen=localhost:10019 --restlisten=localhost:8009 --lnddir=data/lnd --debuglevel=info --bitcoin.simnet --bitcoin.active --bitcoin.node=btcd --btcd.rpcuser=kek --btcd.rpcpass=kek
lnd --rpclisten=localhost:10006 --listen=localhost:10016 --restlisten=localhost:8086 --lnddir=data/lnd --debuglevel=info --bitcoin.simnet --bitcoin.active --bitcoin.node=btcd --btcd.rpcuser=kek --btcd.rpcpass=kek

lncli --network=simnet --rpcserver=localhost:10009 --lnddir=data/lnd unlock
lncli --network=simnet --rpcserver=localhost:10006 --lnddir=data/lnd unlock

lnd --rpclisten=localhost:10002 --listen=localhost:10012 --restlisten=localhost:8002 --lnddir=data/lnd2 --debuglevel=info --bitcoin.simnet --bitcoin.active --bitcoin.node=btcd --btcd.rpcuser=kek --btcd.rpcpass=kek --noencryptwallet
```

## Fund wallets addresses

```
lncli --network=simnet --rpcserver=localhost:10009 --lnddir=data/lnd newaddress np2wkh
lncli --network=simnet --rpcserver=localhost:10006 --lnddir=data/lnd newaddress np2wkh

lncli --network=simnet --rpcserver=localhost:10002 --lnddir=data/lnd2 newaddress np2wkh

Expand All @@ -33,19 +33,19 @@ btcctl --simnet --rpcuser=kek --rpcpass=kek generate 400
## Open channel and send payment

```
lncli --network=simnet --rpcserver=localhost:10009 --lnddir=data/lnd getinfo
lncli --network=simnet --rpcserver=localhost:10006 --lnddir=data/lnd getinfo

lncli --network=simnet --rpcserver=localhost:10002 --lnddir=data/lnd2 getinfo

lncli --network=simnet --rpcserver=localhost:10009 --lnddir=data/lnd connect PUB_KEY@localhost:10012
lncli --network=simnet --rpcserver=localhost:10006 --lnddir=data/lnd connect PUB_KEY@localhost:10012

lncli --network=simnet --rpcserver=localhost:10009 --lnddir=data/lnd openchannel --node_key=PUB_KEY --local_amt=16000000
lncli --network=simnet --rpcserver=localhost:10006 --lnddir=data/lnd openchannel --node_key=PUB_KEY --local_amt=16000000

btcctl --simnet --rpcuser=kek --rpcpass=kek generate 6

lncli --network=simnet --rpcserver=localhost:10009 --lnddir=data/lnd listchannels
lncli --network=simnet --rpcserver=localhost:10006 --lnddir=data/lnd listchannels

lncli --network=simnet --rpcserver=localhost:10002 --lnddir=data/lnd2 addinvoice --amt=10000

lncli --network=simnet --rpcserver=localhost:10009 --lnddir=data/lnd sendpayment --pay_req=ENCODED_INVOICE
lncli --network=simnet --rpcserver=localhost:10006 --lnddir=data/lnd sendpayment --pay_req=ENCODED_INVOICE
```
2 changes: 2 additions & 0 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const {
NETWORK,
LND_PORT,
LND_PEER_PORT,
LND_REST_PORT,
LND_INIT_DELAY,
BTCD_MINING_ADDRESS,
} = require('../src/config');
Expand Down Expand Up @@ -140,6 +141,7 @@ const startLnd = async () => {
lndSettingsDir,
lndPort: LND_PORT,
lndPeerPort: LND_PEER_PORT,
lndRestPort: LND_REST_PORT,
logger: Logger,
lndArgs,
});
Expand Down
6 changes: 4 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ module.exports.LND_INIT_DELAY = 5000;
module.exports.NOTIFICATION_DELAY = 5000;
module.exports.RATE_DELAY = 15 * 60 * 1000;

module.exports.LND_PORT = 10009;
module.exports.LND_PEER_PORT = 10019;
module.exports.LND_PORT = 10006;
module.exports.LND_PEER_PORT = 10016;
module.exports.LND_REST_PORT = 8086;

module.exports.NETWORK = 'testnet';
module.exports.BTCD_MINING_ADDRESS = 'rfu4i1Mo2NF7TQsN9bMVLFSojSzcyQCEH5';

Expand Down