|
|
@ -1,7 +1,7 @@ |
|
|
|
/* eslint-disable */ |
|
|
|
|
|
|
|
export default function subscribeToTransactions(mainWindow, lnd, metadata) { |
|
|
|
const call = lnd.subscribeTransactions({}, metadata) |
|
|
|
export default function subscribeToTransactions(mainWindow, lnd, meta) { |
|
|
|
const call = lnd.subscribeTransactions({}, meta) |
|
|
|
call.on('data', transaction => { |
|
|
|
console.log('TRANSACTION: ', transaction) |
|
|
|
mainWindow.send('newTransaction', { transaction }) |
|
|
|