Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getNode: ['validate', ({}, cbk) => {
// Exit early when there is no via node specified
if (!args.via) {
return cbk();
}
return getNode({lnd: args.lnd, public_key: args.via}, cbk);
}],
getFees: ['getPublicKey', 'lnd', ({getPublicKey, lnd}, cbk) => {
return getNode({lnd, public_key: getPublicKey.public_key}, cbk);
}],
getNode: ['validate', ({}, cbk) => {
return getNode({lnd, public_key: destination}, cbk);
}],