Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 33fc554

Browse files
authored
Merge pull request #3761 from LN-Zap/next
2 parents 8e0499a + f2692b2 commit 33fc554

File tree

5 files changed

+1226
-250
lines changed

5 files changed

+1226
-250
lines changed

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ module.exports = {
8383
testnet: ['testnet3-btcd.zaphq.io', 'testnet4-btcd.zaphq.io'],
8484
mainnet: ['mainnet3-btcd.zaphq.io', 'mainnet4-btcd.zaphq.io'],
8585
},
86+
validateChannels: false,
8687
},
8788

88-
assumechanvalid: true,
8989
recoveryWindow: 2500,
9090
whitelistPeers: false,
9191
},

package.json

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
},
4545
"config": {
4646
"lnd-binary": {
47-
"binaryVersion": "0.12.0-beta-2-g2dd779205",
48-
"binarySite": "https://github.com/LN-Zap/lnd/releases/download"
47+
"binaryVersion": "0.13.1-beta"
4948
}
5049
},
5150
"browserslist": [
@@ -205,14 +204,14 @@
205204
}
206205
},
207206
"devDependencies": {
208-
"@babel/core": "7.11.6",
209-
"@babel/plugin-proposal-class-properties": "7.10.4",
210-
"@babel/plugin-proposal-export-default-from": "7.10.4",
211-
"@babel/plugin-transform-react-constant-elements": "7.10.4",
212-
"@babel/plugin-transform-react-inline-elements": "7.10.4",
213-
"@babel/preset-env": "7.11.5",
214-
"@babel/preset-react": "7.10.4",
215-
"@babel/register": "7.11.5",
207+
"@babel/core": "7.14.6",
208+
"@babel/plugin-proposal-class-properties": "7.14.5",
209+
"@babel/plugin-proposal-export-default-from": "7.14.5",
210+
"@babel/plugin-transform-react-constant-elements": "7.14.5",
211+
"@babel/plugin-transform-react-inline-elements": "7.14.5",
212+
"@babel/preset-env": "7.14.7",
213+
"@babel/preset-react": "7.14.5",
214+
"@babel/register": "7.14.5",
216215
"@commitlint/cli": "8.3.5",
217216
"@commitlint/config-conventional": "8.3.4",
218217
"@ln-zap/eslint-config": "0.3.2",
@@ -226,36 +225,36 @@
226225
"@storybook/react": "5.3.18",
227226
"@storybook/source-loader": "5.3.18",
228227
"@svgr/cli": "4.3.3",
229-
"@types/config": "0.0.36",
230-
"@types/jstimezonedetect": "1.0.2",
231-
"@types/react-dom": "16.9.8",
232-
"@types/react-intl-redux": "0.1.14",
233-
"@types/react-redux": "7.1.9",
234-
"@types/react-router-dom": "5.1.6",
235-
"@types/react-virtualized": "9.21.10",
236-
"@types/rebass": "4.0.7",
237-
"@types/redux-logger": "3.0.8",
228+
"@types/config": "0.0.39",
229+
"@types/jstimezonedetect": "1.0.3",
230+
"@types/react-dom": "16.9.14",
231+
"@types/react-intl-redux": "0.1.15",
232+
"@types/react-redux": "7.1.18",
233+
"@types/react-router-dom": "5.1.8",
234+
"@types/react-virtualized": "9.21.12",
235+
"@types/rebass": "4.0.9",
236+
"@types/redux-logger": "3.0.9",
238237
"@types/styled-system__theme-get": "5.0.1",
239238
"add-asset-html-webpack-plugin": "3.1.3",
240239
"babel-core": "7.0.0-bridge.0",
241240
"babel-eslint": "10.1.0",
242241
"babel-jest": "26.5.2",
243-
"babel-loader": "8.1.0",
242+
"babel-loader": "8.2.2",
244243
"babel-plugin-module-resolver": "4.0.0",
245244
"babel-plugin-react-intl": "7.5.4",
246245
"babel-plugin-react-intl-auto": "3.3.0",
247246
"babel-plugin-styled-components": "1.10.7",
248247
"babel-plugin-transform-react-pure-class-to-function": "1.0.1",
249248
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
250249
"browserslist": "4.16.5",
251-
"circular-dependency-plugin": "5.2.0",
250+
"circular-dependency-plugin": "5.2.2",
252251
"clean-webpack-plugin": "3.0.0",
253252
"copy-webpack-plugin": "5.1.1",
254-
"coveralls": "3.1.0",
253+
"coveralls": "3.1.1",
255254
"cross-env": "7.0.2",
256255
"cross-spawn": "7.0.3",
257256
"csp-html-webpack-plugin": "4.0.0",
258-
"electron": "9.3.4",
257+
"electron": "9.4.4",
259258
"electron-builder": "22.9.1",
260259
"electron-devtools-installer": "3.1.1",
261260
"electron-notarize": "1.0.0",
@@ -288,7 +287,7 @@
288287
"husky": "4.3.0",
289288
"jest": "26.5.3",
290289
"jest-styled-components": "6.3.4",
291-
"lnd-binary": "0.3.18",
290+
"lnd-binary": "0.3.22",
292291
"minimist": "1.2.5",
293292
"mock-spawn": "0.2.6",
294293
"native-ext-loader": "2.3.0",
@@ -324,7 +323,7 @@
324323
"@ln-zap/bolt11": "1.2.8-beta.3",
325324
"@rebass/forms": "4.0.6",
326325
"@styled-system/theme-get": "5.1.2",
327-
"axios": "0.19.2",
326+
"axios": "0.21.1",
328327
"bech32": "1.1.4",
329328
"bignumber.js": "9.0.1",
330329
"bip21": "2.0.3",
@@ -337,7 +336,7 @@
337336
"config": "3.3.2",
338337
"copy-to-clipboard": "3.3.1",
339338
"country-data-lookup": "0.0.33",
340-
"debug": "4.1.1",
339+
"debug": "4.3.2",
341340
"debug-logger": "0.4.1",
342341
"dexie": "3.0.2",
343342
"downshift": "5.4.7",
@@ -352,9 +351,9 @@
352351
"is-electron-renderer": "2.0.1",
353352
"jstimezonedetect": "1.0.7",
354353
"keytar": "5.6.0",
355-
"lnd-grpc": "0.4.8",
354+
"lnd-grpc": "0.5.0",
356355
"lndconnect": "0.2.10",
357-
"lodash": "4.17.20",
356+
"lodash": "4.17.21",
358357
"new-github-issue-url": "0.2.1",
359358
"node-fetch": "2.6.1",
360359
"pdfmake": "0.1.65",

services/neutrino/neutrino.js

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ class Neutrino extends EventEmitter {
302302
`--restlisten=${restlisten}`,
303303
'--accept-keysend',
304304
'--protocol.wumbo-channels',
305-
`${this.lndConfig.assumechanvalid ? '--routing.assumechanvalid' : ''}`,
306305
`${this.lndConfig.alias ? `--alias=${this.lndConfig.alias}` : ''}`,
307306
...autopilotArgs,
308307
...neutrinoArgs,
@@ -378,6 +377,8 @@ class Neutrino extends EventEmitter {
378377
neutrinoArgs.push('--neutrino.useragentname=zap-desktop')
379378
neutrinoArgs.push(`--neutrino.useragentversion=${getPackageDetails().version}`)
380379
neutrinoArgs.push(`--neutrino.feeurl=${feeUrl}`)
380+
neutrinoArgs.push(`
381+
${config.lnd.neutrino.validateChannels ? `--neutrino.validatechannels` : ''}`)
381382
neutrinoArgs.push(`--${chain}.${network}`)
382383
nodes.forEach(node => neutrinoArgs.push(`--neutrino.${connectFlag}=${node}`))
383384

@@ -431,7 +432,6 @@ class Neutrino extends EventEmitter {
431432
stdout.pipe(split2()).on('data', line => {
432433
this.handleErrors(line)
433434
this.notifyOnWalletUnlockerActivation(line)
434-
this.notifyLightningActivation(line)
435435

436436
// If the sync has already completed then we don't need to do any more log processing.
437437
if (this.is(NEUTRINO_CHAIN_SYNC_COMPLETE)) {
@@ -486,26 +486,13 @@ class Neutrino extends EventEmitter {
486486
* @param {string} line log output line
487487
*/
488488
notifyOnWalletUnlockerActivation(line) {
489-
if (line.includes('RPC server listening on') && line.toLowerCase().includes('password')) {
489+
if (line.includes('Waiting for wallet encryption password')) {
490490
this.isWalletUnlockerGrpcActive = true
491491
this.isLightningGrpcActive = false
492492
this.emit(NEUTRINO_WALLET_UNLOCKER_GRPC_ACTIVE)
493493
}
494494
}
495495

496-
/**
497-
* notifyLightningActivation - Update state if log line indicates Lightning gRPC became active.
498-
*
499-
* @param {string} line log output line
500-
*/
501-
notifyLightningActivation(line) {
502-
if (line.includes('RPC server listening on') && !line.toLowerCase().includes('password')) {
503-
this.isLightningGrpcActive = true
504-
this.isWalletUnlockerGrpcActive = false
505-
this.emit(NEUTRINO_LIGHTNING_GRPC_ACTIVE)
506-
}
507-
}
508-
509496
/**
510497
* notifyOnSyncWaiting - Update state if log line indicates we are waiting to sync.
511498
*

utils/lndConfig.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ class LndConfig {
147147
allocation: autopilotAllocation,
148148
minconfs: autopilotMinconfs,
149149
},
150-
assumechanvalid,
151150
whitelistPeers,
152151
} = config.lnd
153152

@@ -162,7 +161,6 @@ class LndConfig {
162161
autopilotMaxchansize,
163162
autopilotAllocation,
164163
autopilotMinconfs,
165-
assumechanvalid,
166164
whitelistPeers,
167165
}
168166
// Merge in whitelisted settings.

0 commit comments

Comments
 (0)