Skip to main content

r/lightningdevs


Lightning Channel Management
Lightning Channel Management

Hi Lightningdevs!

I think it would be useful to have a thread about the intricacies of lighting node and channel management.

I made a little write-up already which is mostly useful here as a link collection. The definitions are rather aimed for beginners. Corrections are still very welcome if I didn`t get something right or oversimplified:

https://github.com/openoms/lightning-node-management/blob/master/README.md

The second link is aa proposal about an efficient way to open a balanced channel with a trusted peer using:

lncli openchannel <nodeID_of_A> --local_amt 2000000 --push_amt 1000000

Read it here: https://github.com/openoms/lightning-node-management/blob/master/BalancedChannelCreation.md

I am also happy to connect if someone wants to play:

My node:
028a2cb8d51e44d7d7e108c2e80a98cc069145e05a6d2025cf554bd8866fe32993@ddrw66yjyrcc5ryk.onion:9735


Thread to collect interesting comments and discussion from the LND Developer Slack
Thread to collect interesting comments and discussion from the LND Developer Slack

u/mrfelton:

I discussed something similar with u/roasbeef in the past in the context of knowing what gRPC subsystems are actually available (since it depends what flags were used when lnd was compiled and what version of lnd you are connecting to). I think there are a couple of things that would be nice:

  1. An api that would provide data about lnd capabilities

  2. An api that would provide data about lnd internal state


gRPC Python SendPaymentSync or SendPayment - not getting through
gRPC Python SendPaymentSync or SendPayment - not getting through
gRPC Python SendPaymentSync or SendPayment - not getting through

Hi all,

Doing the python grpc tutorial with my Lnd node and making some good progress but also running into an issue.

gRPC works fine for listening for invoices and getting the wallet balance but doesn’t seem to work for payments.

So when I just use command line:

Eg lncli payinvoice - it works fine.

But when i try and pay the same node/destination (via the pub key) through Grpc SendPaymentSync or SendPayment I get these errors/return messages:

i) Time out - greater than 1min (can’t remember the actual wording)
ii) FinalExpiryTooSoon

Ive tried two recipients - Lightning roulette (a few hops away) and another that I have a direct channel open with) both failing with gRPC..

Any ideas?

upvotes comment