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

Commit 6c17559

Browse files
authored
Merge pull request #1059 from lightninglabs/6-confs
Display confirmed to on-chain tx after 6 confs
2 parents 29f9e3f + 5a68968 commit 6c17559

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An easy-to-use cross platform lightning wallet
55

66
![Screenshot](https://github.com/lightninglabs/lightning-app/blob/5f2620d1e99ed1372985fec2063066236e4c16d9/assets/screenshot.png)
77

8-
**N.B. The app is under development and the code has not yet been audited. It's currently configured to run on testnet.**
8+
**N.B. This is still early technology and there’s a risk of losing all of your funds. We recommend not putting in more money than you are willing to lose.**
99

1010
### Getting Started
1111

@@ -15,8 +15,6 @@ The app comes for two threat models:
1515

1616
2. *Tin Foil Hat:* if you'd rather build it yourself and do without auto updates, see the instructions below.
1717

18-
After installing the app, head on over to the [testnet faucet](https://testnet.coinfaucet.eu/en/) to send some test BTC to your wallet.
19-
2018
### Contributing
2119

2220
See the `ToDo (next release)` column on our [project board](https://github.com/lightninglabs/lightning-app/projects/1?fullscreen=true). Issues that are easy to pick up for outside contributors are labeled `help wanted`.
@@ -64,7 +62,7 @@ cp $GOPATH/bin/lnd ./assets/bin/darwin
6462
npm run electron-pack
6563
```
6664

67-
The packaged app will then be available in the `dist` directory. The packaged version of the app will run on Bitcoin testnet.
65+
The packaged app will then be available in the `dist` directory. The packaged version of the app will run on Bitcoin mainnet.
6866

6967
### Starting the Packaged App (light client)
7068

@@ -73,33 +71,33 @@ To run the packaged version of the app e.g. for macOS run:
7371
./dist/mac/Lightning.app/Contents/MacOS/Lightning
7472
```
7573

76-
The app is configured for testnet by default but you can opt-in to mainnet if you have a btcd node running. Be aware that this is currently still experimental:
74+
The app is configured for mainnet by default but you can opt-in to testnet:
7775
```
78-
./dist/mac/Lightning.app/Contents/MacOS/Lightning --bitcoin.mainnet --bitcoin.node=neutrino --neutrino.connect=127.0.0.1
76+
./dist/mac/Lightning.app/Contents/MacOS/Lightning --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=btcd-testnet.lightning.computer --neutrino.feeurl=https://nodes.lightning.computer/fees/v1/btctestnet-fee-estimates.json
7977
```
8078

8179
### Starting the Packaged App (full node)
8280

8381
#### btcd
84-
Start btcd in a separate terminal session and wait until it's fully synced (can take over a day). Remove the `--testnet` flag for mainnet:
82+
Start btcd in a separate terminal session and wait until it's fully synced (can take a while):
8583
```
86-
btcd --testnet --txindex --rpcuser=kek --rpcpass=kek
84+
btcd --txindex --rpcuser=kek --rpcpass=kek
8785
```
8886

89-
To run the packaged version of the app e.g. for macOS run (set `--bitcoin.mainnet` for mainnet):
87+
To run the packaged version of the app e.g. for macOS run:
9088
```
91-
./dist/mac/Lightning.app/Contents/MacOS/Lightning --bitcoin.testnet --btcd.rpcuser=kek --btcd.rpcpass=kek
89+
./dist/mac/Lightning.app/Contents/MacOS/Lightning --bitcoin.mainnet --btcd.rpcuser=kek --btcd.rpcpass=kek
9290
```
9391

9492
#### bitcoind
95-
Start bitcoind in a separate terminal session and wait until it's fully synced (can take over a day). Remove the `-testnet` flag for mainnet:
93+
Start bitcoind in a separate terminal session and wait until it's fully synced (can take over a day):
9694
```
97-
bitcoind -testnet -txindex=1 -rpcuser=kek -rpcpassword=kek -rpcbind=localhost -zmqpubrawblock=tcp://127.0.0.1:28332 -zmqpubrawtx=tcp://127.0.0.1:28333
95+
bitcoind -txindex=1 -rpcuser=kek -rpcpassword=kek -rpcbind=localhost -zmqpubrawblock=tcp://127.0.0.1:28332 -zmqpubrawtx=tcp://127.0.0.1:28333
9896
```
9997

100-
To run the packaged version of the app e.g. for macOS run (set `--bitcoin.mainnet` for mainnet):
98+
To run the packaged version of the app e.g. for macOS run:
10199
```
102-
./dist/mac/Lightning.app/Contents/MacOS/Lightning --bitcoin.testnet --bitcoin.node=bitcoind --bitcoind.rpcuser=kek --bitcoind.rpcpass=kek --bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332 --bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
100+
./dist/mac/Lightning.app/Contents/MacOS/Lightning --bitcoin.mainnet --bitcoin.node=bitcoind --bitcoind.rpcuser=kek --bitcoind.rpcpass=kek --bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332 --bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
103101
```
104102

105103
### Lnd data and logs

public/electron.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ function createWindow() {
127127
lndPort: LND_PORT,
128128
network: isDev
129129
? 'simnet'
130-
: lndArgs.includes('--bitcoin.mainnet')
131-
? 'mainnet'
132-
: 'testnet',
130+
: lndArgs.includes('--bitcoin.testnet')
131+
? 'testnet'
132+
: 'mainnet',
133133
});
134134
}
135135

public/lnd-child-process.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ module.exports.startLndProcess = async function({
6262
'--debuglevel=info',
6363
`--lnddir=${lndSettingsDir}`,
6464
`--routing.assumechanvalid`,
65+
'--historicalsyncinterval=20m',
6566
'--autopilot.private',
6667
'--autopilot.minconfs=0',
6768
'--autopilot.allocation=0.95',
68-
'--autopilot.heuristic=externalscore:0.7',
69-
'--autopilot.heuristic=preferential:0.3',
69+
'--autopilot.heuristic=externalscore:0.95',
70+
'--autopilot.heuristic=preferential:0.05',
7071
lndPort ? `--rpclisten=localhost:${lndPort}` : '',
7172
lndPeerPort ? `--listen=localhost:${lndPeerPort}` : '',
7273
lndRestPort ? `--restlisten=localhost:${lndRestPort}` : '',
@@ -83,10 +84,10 @@ module.exports.startLndProcess = async function({
8384
// set default production settings if no custom flags
8485
if (!isDev && !lndArgs.length) {
8586
args = args.concat([
86-
'--bitcoin.testnet',
87+
'--bitcoin.mainnet',
8788
'--bitcoin.node=neutrino',
88-
'--neutrino.connect=btcd-testnet.lightning.computer',
89-
'--neutrino.feeurl=https://nodes.lightning.computer/fees/v1/btctestnet-fee-estimates.json',
89+
'--neutrino.connect=13.91.246.35',
90+
'--neutrino.feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json',
9091
]);
9192
}
9293
args = args.concat(lndArgs);

0 commit comments

Comments
 (0)