lightning icon indicating copy to clipboard operation
lightning copied to clipboard

`cln_grpc`: How to use default behavior of `exposeprivatechannels`?

Open ErikDeSmedt opened this issue 1 year ago • 1 comments

Context

The invoice-method in the JSON-rpc has a exposeprivatechannels-field. If this field is not specified Core Lightning will only include private channels in the invoice if no public channels are available.

I'd like to get the same behavior using cln_grpc. In this case the exposeprivatechannels-field which expects a vector of short-channel-id's. If the vector is empty, the invoice will not contain any private channels.

ErikDeSmedt avatar Aug 22 '24 08:08 ErikDeSmedt

I don't believe the behaviour is different using cln-(g)rpc. I think it's just a bit random or depending on your test setup if the invoice contains any channels.

daywalker90 avatar Aug 22 '24 09:08 daywalker90