implement lnd pub getter method
This commit is contained in:
parent
9c1e980bd3
commit
b4a24ce7fc
1 changed files with 12 additions and 1 deletions
|
|
@ -240,7 +240,18 @@ const decodePayReq = payReq =>
|
|||
/**
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
const myLNDPub = () => Promise.resolve('afjsjkhasdjkhajksd')
|
||||
const myLNDPub = () =>
|
||||
Common.makePromise((res, rej) => {
|
||||
const { lightning } = lightningServices.getServices()
|
||||
|
||||
lightning.getInfo({}, (err, data) => {
|
||||
if (err) {
|
||||
rej(new Error(err.message))
|
||||
} else {
|
||||
res(data.identity_pubkey)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
/**
|
||||
* aklssjdklasd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue