pyln-testing: set 'dev-save-plugin-io' only on CLN v25.09 and later
What changed, and why it matters
This is a small testing-framework fix that stops passing a developer-only option ('dev-save-plugin-io') to older versions of Core Lightning. The option only exists in newer code, so without the version check, tests against older CLN releases would fail to start. It is not a security patch for production software.
No security action required. Treat as normal test-framework maintenance. If auditing, note this commit only affects testing infrastructure and does not change production node behavior.
Security signals we found
No security-relevant signal: change is in test framework compatibility code
No memory safety, cryptography, authentication, authorization, or network changes
No bug fix, vulnerability remediation, or hardening pattern present
Evidence from the diff
The commit adds a version guard around setting self.daemon.opts[‘dev-save-plugin-io’] in pyln-testing’s LightningNode.start(). Previously the option was unconditionally set, which breaks when the testing framework drives CLN nodes older than v25.09 because the option does not exist in those versions. The change is purely a test-infrastructure compatibility fix.
Changed components
contrib/pyln-testing/pyln/testing/utils.pyInspect captured patch +2 / −1
diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py
index 2317c96c..6cfb36e7 100644
--- a/contrib/pyln-testing/pyln/testing/utils.py
+++ b/contrib/pyln-testing/pyln/testing/utils.py
@@ -857,7 +857,8 @@ class LightningNode(object):
jsondir = Path(lightning_dir) / "plugin-io"
jsondir.mkdir()
- self.daemon.opts['dev-save-plugin-io'] = jsondir
+ if self.cln_version >= "v25.09":
+ self.daemon.opts['dev-save-plugin-io'] = jsondir
if options is not None:
self.daemon.opts.update(options)
Why this scored 19/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.