Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with inbound capacity #403

Open
jheathco opened this issue Mar 14, 2022 · 13 comments
Open

Issue with inbound capacity #403

jheathco opened this issue Mar 14, 2022 · 13 comments

Comments

@jheathco
Copy link

I've got LndHub set up and when accessing via HTTP it shows my 2 well-funded open channels. Sending/receiving payments works just fine via Zap or lncli.

I'm also able to create a lightning wallet using my lndhub URL in BlueWallet without issue. However, upon trying to receive a payment via BlueWallet, I get an error informing me that there isn't a route or not enough capacity. Is there some other step I'm missing here?

@Overtorment
Copy link
Member

can you post a screenshot? i cant figure out where are you seeing this

@jheathco
Copy link
Author

jheathco commented Mar 14, 2022

LndHub screenshot:
https://ibb.co/PCQj2fb

Error in BlueWallet when trying to receive a payment:
https://ibb.co/p2TzGtY

@Overtorment
Copy link
Member

so, you created invoice using your own instance of LNDHUB.
and youre trying pay this invoice using bluewallet's default instance of LNDHUB?

@jheathco
Copy link
Author

Correct, invoice created with my lndhub instance’s wallet, and attempting payment via a funded lightning wallet I’ve had with bluewallet’s default lndhub for some time.

No issues with payment routes from lnd on my node to/from the BlueWallet lightning wallet.

@Overtorment
Copy link
Member

route fees might exceed 1% of the amount value, thats why its failing.
Try bigger invoices, like $100

@jheathco
Copy link
Author

Same issue - bizarre... do I need to do anything special to "activate" LndHub's ability to route payments? It's obviously communicating with lnd properly if it's displaying the open channels, etc. Could this be a redis issue?

@Overtorment
Copy link
Member

are there any errors in lndhub's log?
no extra configuration is required.

post your bolt11, ill try to pay it to debug

@jheathco
Copy link
Author

lnbc24380n1p3r8tacpp5cedj4qh7csq43r2628rmqq8zft75723xzyyyxuryp00cqffc0njsdqqcqzpgxqyz5vqsp5gnwptn4ds7kv7emxqcxx8vqgq58m8uq9wjfqxq4ywwq5z740l4as9qy9qsqdnx0wv9xavuw8vn7a9j29sfrlwhrncshfyjrxdwmyvrx6x6kltvy2tp2twpwvcjlj28lrv5hy3gzu4xwtxs2kpsek3ncwdwstjq0frsqutcgcn

Will check logs later today

@jheathco
Copy link
Author

Don't see any errors of note... only this:

2022-03-18 03:16:45.841 [ERR] BTCN: Can't accept connection: unable to accept connection from [::1]:54974: EOF

I can see activity in logs for invoice creation, etc - all looks good.

@Overtorment
Copy link
Member

for some reason our production node cant find path to your note at all

overtorment@lnd2:~/.lnd/data/chain/bitcoin/mainnet$ lncli queryroutes --dest 03d9d4f54573746fa4044bfd01a0f763c8754f6c980fc11cc8c983d8c2f40ade7f --amt 24380000
[lncli] rpc error: code = Unknown desc = unable to find a path to destination

looking at your node here https://1ml.com/node/03d9d4f54573746fa4044bfd01a0f763c8754f6c980fc11cc8c983d8c2f40ade7f i dont see any open public channels

@jheathco
Copy link
Author

jheathco commented Mar 19, 2022

Here’s an invoice from lnd itself (the one lndhub is attached to). No issues paying lnd directly:

lnbc23960n1p3r2nk9pp5zmqwzwzr3dqacsz02klcaz58zc3950540dj7v36mrxsf62w5hevqdqqcqzpgxqrrssrzjqvxr7xwhgt9zjjj4cqphdvan2hpujrtpc6mt8925m0r6cxd3g8q57zcm5cqq2gsqqqqqqq05qqqq86qqeqsp5jafudmxfu0nyw8rlafz4d20v94pz3sflgqtqgzxk4xe9xxhzkzhq9qy9qsqx4ese4v8ytzl0zprl23lud4psfcg7aa893dk0paxpgx0vl2dhgvhdsp00nlgmuv6lkgrewlzhesqj66vvsth2z5usr985vujlacal5spgk0hul

I do see that this invoice provides a route hint, while the one generated by lndhub does not... not sure if this has something to do with it?

@Overtorment
Copy link
Member

looks like thats the root-cause. the way lndhub adds invoice - lnd doesnt add route hints for private channels.
PRs welcome.

@jheathco
Copy link
Author

Yes, after a bit more investigation that appears to be the issue. A bit of background, I was using Zap to manage the node remotely and Zap apparently defaults to private channels. Because there were no public channels open at the time, LndHub was unable to route incoming payments (since no hints are added to the invoice).

I've since opened a few public channels and the problem was solved. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants