ElementsProject / lightning-charge

A simple drop-in solution for accepting lightning payments
MIT License
553 stars 80 forks source link

Sending a payment to the address on the invoice is never able to find a route #41

Closed brandoncollins7 closed 6 years ago

brandoncollins7 commented 6 years ago

Maybe I am missing something but it seems this tool is incomplete? I have the image up and running and figured out that I had to ssh into the box and open some channels via lightning-cli manually. But even after doing this (and being able to successfully send a payment to starblocks) I am never able to find a route to receive an incoming payment. That is with both my eclair for android and my lightning-charge node being connected to the same acinq node. Given the whole point of this project appears to be accepting payments I don't see any documentation on what I could be missing to actually be able to receive the payment? It doesn't even appear this image exposes the right port for the lightningd to even be discovered?

shesek commented 6 years ago

am never able to find a route to receive an incoming payment.

Lightning channels funded by you have their entire balance initially belonging to you. In this state, you can't receive incoming payments since all the funds are already yours. Getting inbound payment capacity requires sending some funds first to balance the channel. See the explanation here for some more details.

exposes the right port for the lightningd

The Dockerfile does expose this, its port 9735. If you want docker to forward this, add -p 9735:9735 to your docker run command.

shesek commented 6 years ago

Closing, please report back if you're still having trouble.