mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 15:00:34 +01:00
19 lines
358 B
Python
19 lines
358 B
Python
|
#!/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.py deprecated one")
|
||
|
|
||
|
|
||
|
plugin.run()
|