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

Fix listchannels includeprivate broken #7663

Conversation

rustyrussell
Copy link
Contributor

Erroneous check made us complain every time we output a deprecated field in listchannels.

Fixes: #7652

It's an output field (which we don't complain about), not an input field!

Fixes: ElementsProject#7652
Changelog-Fixed: Logging: removed bogus "**BROKEN** plugin-topology: DEPRECATED API USED: listchannels.include_private" message.
Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell rustyrussell added this to the v24.08.1 milestone Sep 13, 2024
@rustyrussell rustyrussell self-assigned this Sep 13, 2024
Comment on lines +4420 to +4424
def test_listchannels_broken_message(node_factory):
"""This gave a bogus BROKEN message with deprecated-apis enabled"""
l1 = node_factory.get_node(options={'allow-deprecated-apis': True})

l1.rpc.listchannels()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to assert on the logs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup already does this automatically...

@rustyrussell rustyrussell merged commit bfe0557 into ElementsProject:master Sep 16, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

listchannels throws DEPRECATED API USED message
2 participants