From 1c7b0bb4f4757160b0c99a0b2947730f3ab04a83 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Mon, 30 Aug 2021 17:52:07 +0200 Subject: [PATCH] autopilot: remove support for 0.7.2 clighting This is required becasue current `lightningd` will not start when using a non-dynamic plugin. Since clighting version 0.7.2 is very old, we can safely remove this code. --- autopilot/autopilot.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/autopilot/autopilot.py b/autopilot/autopilot.py index cda9088..f7e0d8b 100755 --- a/autopilot/autopilot.py +++ b/autopilot/autopilot.py @@ -11,6 +11,9 @@ import dns.resolver import time +plugin = Plugin() + + class CLightning_autopilot(Autopilot): def __init__(self, rpc): @@ -115,13 +118,6 @@ class CLightning_autopilot(Autopilot): print("Could not open a channel to {} with capacity of {}. Error: {}".format(nodeid, satoshis, str(e))) -try: - # C-lightning v0.7.2 - plugin = Plugin(dynamic=False) -except: - plugin = Plugin() - - @plugin.init() def init(configuration, options, plugin): plugin.num_channels = int(options['autopilot-num-channels'])