lightning icon indicating copy to clipboard operation
lightning copied to clipboard

grpc - plugin-topology: disallowing deprecated listchannels.include_private

Open JssDWt opened this issue 1 year ago • 5 comments

Issue and Steps to Reproduce

In cln 24.02rc2

When calling ListChannels through the grpc api, the following message is logged in the log. plugin-topology: Note: disallowing deprecated listchannels.include_private for \"1/cln:listchannels#80\"

The channel I'm looking for is not found by the listchannels call. Note that there is no option for include_private in the grpc ListChannelsRequest.

This causes my integration tests to fail on cln 24.02rc2

JssDWt avatar Feb 23 '24 09:02 JssDWt

If you want to get private channels you need to use listpeerchannels now.

daywalker90 avatar Feb 26 '24 08:02 daywalker90

If you want to get private channels you need to use listpeerchannels now.

I'm looking specifically for the active field in listchannels. Is there an alternative in listpeerchannels that is equivalent? A channel can be in state CHANNELD_NORMAL without being active.

JssDWt avatar Feb 26 '24 08:02 JssDWt

If you want to get private channels you need to use listpeerchannels now.

I'm looking specifically for the active field in listchannels. Is there an alternative in listpeerchannels that is equivalent? A channel can be in state CHANNELD_NORMAL without being active.

no there is not, closest thing is probably last_stable_connection

daywalker90 avatar Feb 26 '24 08:02 daywalker90

no there is not, closest thing is probably last_stable_connection

Any chance to re-enable this functionality? Or at least add a replacement for the active field?

JssDWt avatar Feb 26 '24 10:02 JssDWt

Not really, the private gossip has been split from the public one, since they are fundamentally different. We should add the active flag to the listpeerchannels output instead.

cdecker avatar Feb 26 '24 17:02 cdecker