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

Commit

Permalink
fix(lnd): case insensitive parsing of lnd debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Jan 28, 2021
1 parent 0d637e3 commit e46ef82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/neutrino/neutrino.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,13 @@ class Neutrino extends EventEmitter {
}

/**
*
* notifyOnWalletUnlockerActivation - Update state if log line indicates WalletUnlocker gRPC became active.
*
* @param {string} line log output line
*/
notifyOnWalletUnlockerActivation(line) {
if (line.includes('RPC server listening on') && line.includes('password')) {
if (line.includes('RPC server listening on') && line.toLowerCase().includes('password')) {
this.isWalletUnlockerGrpcActive = true
this.isLightningGrpcActive = false
this.emit(NEUTRINO_WALLET_UNLOCKER_GRPC_ACTIVE)
Expand All @@ -496,7 +497,7 @@ class Neutrino extends EventEmitter {
* @param {string} line log output line
*/
notifyLightningActivation(line) {
if (line.includes('RPC server listening on') && !line.includes('password')) {
if (line.includes('RPC server listening on') && !line.toLowerCase().includes('password')) {
this.isLightningGrpcActive = true
this.isWalletUnlockerGrpcActive = false
this.emit(NEUTRINO_LIGHTNING_GRPC_ACTIVE)
Expand Down

0 comments on commit e46ef82

Please sign in to comment.