-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lightningd: fix up deprecated
rest-port
, rest-protocol
, `rest-hos…
…t` and `rest-certs` option if we would otherwise fail. Since these worked in v23.08, we can't just rename them. So if they are used and unclaimed, we should rename them internally (if they're claimed, it's probably clightning-rest, and we should *NOT* touch them!). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Deprecated: Plugins: `clnrest` parameters `rest-port`, `rest-protocol`, `rest-host` and `rest-certs`: prefix `cln` to them
- Loading branch information
1 parent
8f8202d
commit 2d15913
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters