Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 137 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ members = [
"plugins/wss-proxy-plugin",
"plugins/bip353-plugin",
"plugins/currencyrate-plugin",
"plugins/reckless-plugin",
]

[workspace.dependencies]
Expand Down
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,7 @@ ALL_NONGEN_SRCFILES := $(ALL_NONGEN_HEADERS) $(ALL_NONGEN_SOURCES)
BIN_PROGRAMS = \
cli/lightning-cli \
lightningd/lightningd \
tools/lightning-hsmtool\
tools/reckless
tools/lightning-hsmtool
PKGLIBEXEC_PROGRAMS = \
lightningd/lightning_channeld \
lightningd/lightning_closingd \
Expand Down Expand Up @@ -872,7 +871,7 @@ clean: obsclean

# See doc/contribute-to-core-lightning/contributor-workflow.md
PYLNS=client proto testing
update-versions: update-pyln-versions update-reckless-version update-dot-version # FIXME: update-doc-examples
update-versions: update-pyln-versions update-dot-version # FIXME: update-doc-examples
@uv lock

update-pyln-versions: $(PYLNS:%=update-pyln-version-%)
Expand Down Expand Up @@ -910,11 +909,6 @@ pyln-build-all: pyln-build pyln-build-bolts pyln-build-grpc-proto pyln-build-wss
update-lock:
uv sync --all-extras --all-groups

update-reckless-version:
@if [ -z "$(NEW_VERSION)" ]; then echo "Set NEW_VERSION!" >&2; exit 1; fi
@echo "Updating tools/reckless to $(NEW_VERSION)"
@$(SED) -i.bak "s/__VERSION__ = '.*'/__VERSION__ = '$(NEW_VERSION)'/" tools/reckless && rm tools/reckless.bak

update-dot-version:
@if [ -z "$(NEW_VERSION)" ]; then echo "Set NEW_VERSION!" >&2; exit 1; fi
echo $(NEW_VERSION) > .version
Expand Down
35 changes: 12 additions & 23 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31332,9 +31332,9 @@
"$schema": "../rpc-schema-draft.json",
"type": "object",
"rpc": "reckless",
"title": "Issue a command to the reckless plugin manager utility",
"title": "Reckless, a plugin manager",
"description": [
"The **reckless** RPC starts a reckless process with the *command* and *target* provided. Node configuration, network, and lightning direrctory are automatically passed to the reckless utility."
"The **reckless** RPC lets you manage plugins. It has multiple commands available, best described in the **help** command."
],
"request": {
"required": [
Expand All @@ -31346,45 +31346,34 @@
"type": "string",
"enum": [
"install",
"update",
"uninstall",
"search",
"listavailable",
"listinstalled",
"enable",
"disable",
"source",
"--version"
"tip",
"help"
],
"description": [
"Determines which command to pass to reckless",
" - *command* **install** takes a *plugin_name* to search for and install a named plugin.",
" - *command* **uninstall** takes a *plugin_name* and attempts to uninstall a plugin of the same name.",
" - *command* **search** takes a *plugin_name* to search for a named plugin.",
" - *command* **help** takes a *command* to display help for.",
"..."
]
},
"target/subcommand": {
"oneOf": [
{
"type": "string"
},
{
"type": "array"
}
],
"type": "string",
"description": [
"Target of a reckless command or a subcommand."
]
},
"target": {
"oneOf": [
{
"type": "string"
},
{
"type": "array"
}
],
"type": "string",
"description": [
"*name* of a plugin to install/uninstall/search/enable/disable or source to add/remove."
"*name* of a plugin to install/uninstall/listavailable/enable/disable or source to add/remove."
]
}
}
Expand All @@ -31399,7 +31388,7 @@
"result": {
"type": "array",
"items": {
"type": "string"
"type": "object"
},
"description": [
"Output of the requested reckless command."
Expand Down
2 changes: 1 addition & 1 deletion contrib/pyln-testing/pyln/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def __init__(self, node_id, lightning_dir, bitcoind, executor, may_fail=False,
if dsn is not None:
self.daemon.opts['wallet'] = dsn
if VALGRIND:
trace_skip_pattern = '*python*,*bitcoin-cli*,*elements-cli*,*cln-grpc*,*clnrest*,*wss-proxy*,*cln-bip353*,*reckless,*cln-currencyrate*'
trace_skip_pattern = '*python*,*bitcoin-cli*,*elements-cli*,*cln-grpc*,*clnrest*,*wss-proxy*,*cln-bip353*,*reckless,*cln-currencyrate*,*cln-reckless*'
if not valgrind_plugins:
trace_skip_pattern += ',*plugins*'
self.daemon.cmd_prefix = [
Expand Down
5 changes: 5 additions & 0 deletions doc/lightningd-config.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ connections. Default is 9736.
them over grpc. If buffer overflow occurs some notifications will not
be delivered.

* **reckless-dir**=*DIR*

Set the working directory for reckless, where repositories, metadata, reckless-installed
plugins, and a reckless-installed config is stored. Defaults to `lightning-dir/../reckless`

### Lightning node customization options

* **recover**=*mnemonic*
Expand Down
Loading
Loading