Skip to content

Commit 119be76

Browse files
daywalker90endothermicdev
authored andcommitted
pyln-testing: set autoconnect-seeker-peers only in supported cln 24.11+
Changelog-None
1 parent da793e6 commit 119be76

File tree

1 file changed

+5
-1
lines changed
  • contrib/pyln-testing/pyln/testing

1 file changed

+5
-1
lines changed

contrib/pyln-testing/pyln/testing/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,11 @@ def __init__(self, node_id, lightning_dir, bitcoind, executor, valgrind, may_fai
835835
if EXPERIMENTAL_SPLICING:
836836
self.daemon.opts["experimental-splicing"] = None
837837
# Avoid test flakes cause by this option unless explicitly set.
838-
self.daemon.opts.update({"autoconnect-seeker-peers": 0})
838+
try:
839+
if VersionSpec.parse(">=v24.11").matches(self.cln_version):
840+
self.daemon.opts.update({"autoconnect-seeker-peers": 0})
841+
except Exception:
842+
raise ValueError(f"Invalid version {type(self.cln_version)} - {self.cln_version}")
839843

840844
if options is not None:
841845
self.daemon.opts.update(options)

0 commit comments

Comments
 (0)