Browse Source

Merge pull request #464 from LN-Zap/fix/undefined-lnd-log

fix(log): fix the uncaught exception by calling info on log not lnd
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
dc32568236
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/lnd/subscribe/transactions.js

2
app/lnd/subscribe/transactions.js

@ -1,7 +1,7 @@
export default function subscribeToTransactions(mainWindow, lnd, log) { export default function subscribeToTransactions(mainWindow, lnd, log) {
const call = lnd.subscribeTransactions({}) const call = lnd.subscribeTransactions({})
call.on('data', transaction => { call.on('data', transaction => {
lnd.log.info('TRANSACTION:', transaction) log.info('TRANSACTION:', transaction)
mainWindow.send('newTransaction', { transaction }) mainWindow.send('newTransaction', { transaction })
}) })
call.on('end', () => log.info('end')) call.on('end', () => log.info('end'))

Loading…
Cancel
Save