lightningd / plugins

Community curated plugins for core-lightning
BSD 3-Clause "New" or "Revised" License
269 stars 129 forks source link

autopilot: too many values to unpack #45

Closed rustyrussell closed 1 month ago

rustyrussell commented 5 years ago

I don't want autopilot to do anything, and documentation was unclear. I believe this should be the default mode, and you should have to specify something to make it actually take over your node.

Anyway, my config was:

autopilot-percent=0
autopilot-num-channels=0

Resulting in:

2019-07-26T04:27:40.397Z INFO lightningd(1263): RPC method 'autopilot-run-once' does not have a docstring.
2019-07-26T04:29:10.127Z INFO plugin-autopilot.py No input specified download graph from peers
2019-07-26T04:29:10.129Z INFO plugin-autopilot.py Instantiated networkx graph to store the lightning network
2019-07-26T04:29:10.131Z INFO plugin-autopilot.py Attempt RPC-call to download nodes from the lightning network
2019-07-26T04:33:10.600Z INFO plugin-autopilot.py Number of nodes found and added to the local networkx graph: 4452
2019-07-26T04:33:10.602Z INFO plugin-autopilot.py Attempt RPC-call to download channels from the lightning network
2019-07-26T04:44:12.382Z INFO plugin-autopilot.py Number of retrieved channels: 64728
2019-07-26T05:29:38.483Z INFO plugin-autopilot.py I'd like to open -10 new channels with 0 satoshis each
2019-07-26T05:29:38.507Z UNUSUAL plugin-autopilot.py 2019-07-26 05:29:38,498 - lib-autopilot - INFO - running the autopilot on a graph with 4453 nodes and 29049 edges.
2019-07-26T05:29:38.512Z UNUSUAL plugin-autopilot.py INFO:lib-autopilot:running the autopilot on a graph with 4453 nodes and 29049 edges.
2019-07-26T05:29:38.519Z UNUSUAL plugin-autopilot.py 2019-07-26 05:29:38,506 - lib-autopilot - INFO - GENERATE CANDIDATES: Try to generate up to -10 nodes with 4 strategies: (random, central, network Improvement, liquidity)
2019-07-26T05:29:38.524Z UNUSUAL plugin-autopilot.py INFO:lib-autopilot:GENERATE CANDIDATES: Try to generate up to -10 nodes with 4 strategies: (random, central, network Improvement, liquidity)
2019-07-26T05:29:38.529Z UNUSUAL plugin-autopilot.py 2019-07-26 05:29:38,507 - lib-autopilot - INFO - DECREASE DIAMETER: Generating probability density function
2019-07-26T05:29:38.534Z UNUSUAL plugin-autopilot.py INFO:lib-autopilot:DECREASE DIAMETER: Generating probability density function
2019-07-26T05:30:58.978Z INFO plugin-autopilot.py Traceback (most recent call last):
2019-07-26T05:30:58.980Z INFO plugin-autopilot.py   File \"/home/rusty/lightning/contrib/pylightning/lightning/plugin.py\", line 363, in _dispatch_request
2019-07-26T05:30:58.982Z INFO plugin-autopilot.py     result = self._exec_func(method.func, request)
2019-07-26T05:30:58.985Z INFO plugin-autopilot.py   File \"/home/rusty/lightning/contrib/pylightning/lightning/plugin.py\", line 347, in _exec_func
2019-07-26T05:30:58.988Z INFO plugin-autopilot.py     return func(*ba.args, **ba.kwargs)
2019-07-26T05:30:58.989Z INFO plugin-autopilot.py   File \"/home/rusty/plugins/autopilot/autopilot.py\", line 148, in run_once
2019-07-26T05:30:58.992Z INFO plugin-autopilot.py     percentile=0.5
2019-07-26T05:30:58.997Z INFO plugin-autopilot.py   File \"/home/rusty/plugins/autopilot/lib_autopilot.py\", line 382, in find_candidates
2019-07-26T05:30:59.000Z INFO plugin-autopilot.py     res = self.__create_pdfs()
2019-07-26T05:30:59.003Z INFO plugin-autopilot.py   File \"/home/rusty/plugins/autopilot/lib_autopilot.py\", line 290, in __create_pdfs
2019-07-26T05:30:59.008Z INFO plugin-autopilot.py     res[\"path\"] = self.__get_long_path_pdf()
2019-07-26T05:30:59.013Z INFO plugin-autopilot.py   File \"/home/rusty/plugins/autopilot/lib_autopilot.py\", line 245, in __get_long_path_pdf
2019-07-26T05:30:59.016Z INFO plugin-autopilot.py     for node, paths in all_pair_shortest_path_lengths:
2019-07-26T05:30:59.026Z INFO plugin-autopilot.py ValueError: too many values to unpack (expected 2)
ca-ruz commented 1 month ago

@chrisguida This plugin has been archived.

chrisguida commented 1 month ago

Thanks @ca-ruz !

Closing due to autopilot being archived