Merge pull request #1483 from stackernews/fix-lnaddr-withdrawals
Fix lnaddr withdrawals
This commit is contained in:
commit
6b1f671329
@ -131,7 +131,7 @@ export const getBlockHeight = cachedFetcher(async function fetchBlockHeight ({ l
|
|||||||
|
|
||||||
export const getOurPubkey = cachedFetcher(async function fetchOurPubkey ({ lnd, ...args }) {
|
export const getOurPubkey = cachedFetcher(async function fetchOurPubkey ({ lnd, ...args }) {
|
||||||
try {
|
try {
|
||||||
const { identity } = await getIdentity({ lnd, ...args })
|
const identity = await getIdentity({ lnd, ...args })
|
||||||
return identity.public_key
|
return identity.public_key
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error(`Unable to fetch identity: ${err.message}`)
|
throw new Error(`Unable to fetch identity: ${err.message}`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user