You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
612 B
19 lines
612 B
8 years ago
|
import config from './config'
|
||
7 years ago
|
import walletUnlocker from './walletUnlocker'
|
||
7 years ago
|
import walletUnlockerMethods from './walletUnlockerMethods'
|
||
7 years ago
|
// use mainLog because lndLog is reserved for the lnd binary itself
|
||
|
import { mainLog } from '../utils/log'
|
||
8 years ago
|
|
||
7 years ago
|
const initWalletUnlocker = () => {
|
||
7 years ago
|
const lndConfig = config.lnd()
|
||
7 years ago
|
const walletUnlockerObj = walletUnlocker(lndConfig.rpcProtoPath, lndConfig.host)
|
||
7 years ago
|
const walletUnlockerMethodsCallback = (event, msg, data) =>
|
||
|
walletUnlockerMethods(walletUnlockerObj, mainLog, event, msg, data)
|
||
7 years ago
|
|
||
7 years ago
|
return walletUnlockerMethodsCallback
|
||
7 years ago
|
}
|
||
|
|
||
|
export default {
|
||
7 years ago
|
initWalletUnlocker
|
||
7 years ago
|
}
|