core-lightning/tests/plugins/clnrest-use-options.py
daywalker90 cac9315c00 clnrest: replace with rust plugin
Changelog-Changed: clnrest is now a rust plugin
2025-01-29 18:32:23 -08:00

18 lines
355 B
Python
Executable file

#!/usr/bin/env python3
"""Register rest-port to test that we don't "fix" it."""
from pyln.client import Plugin
plugin = Plugin()
@plugin.init()
def init(configuration, options, plugin):
print(f"rest-port is {plugin.get_option('rest-port')}")
plugin.add_option('rest-port', None, "Parameter to clash with clnrest deprecated one")
plugin.run()