Commit Graph

23 Commits

Author SHA1 Message Date
Michael Schmoock
c4a1a70afe autopilot: return error messages on run-once 2021-09-08 17:54:05 +02:00
Michael Schmoock
de60a232e3 autopilot: adds basic tests to ensure plugin is runable 2021-09-01 14:22:11 +02:00
Michael Schmoock
9389b4bf0f autopilot: replaced print's by proper plugin.log calls 2021-09-01 14:22:11 +02:00
Michael Schmoock
5cb1e3e8d8 autopilot: catch and return initialization errors. 2021-09-01 14:22:11 +02:00
Michael Schmoock
aa0efca2bc autopilot: return messages on run_once 2021-09-01 14:22:11 +02:00
Michael Schmoock
967ff12ca0 autopilot: nits and missing docstrings 2021-09-01 14:22:11 +02:00
Michael Schmoock
4dffeaa719 autopilot: fix broken requirements for python 3.9
the old networkx version 2.3 did try to use `fractions.gcd()` which was
deprecated already and is removed for python 3.9. pulling in networkx
version 2.4 works with python 3.9 while also with the code of this
plugin.
2021-09-01 14:22:11 +02:00
Michael Schmoock
1c7b0bb4f4 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.
2021-09-01 14:22:11 +02:00
bit0fun
9d3cf96358 autopilot: Move initialization into a separate thread 2021-09-01 14:22:11 +02:00
Michael Schmoock
5f7cef3cf9 autopilot: fix flake8 nits 2020-12-13 15:36:15 +01:00
Moller40
2464c328a2 autopilot: Improve calculation of available funds
Deduct the funds that are awaiting lockin and can't be used.
2020-10-20 12:45:35 +02:00
Moller40
de1cd7314f autopilot: Avoid "ZeroDivisionError: float division by zero"
Adding checks that prevents num_channels to be zero (or negative)
and by that avoiding zero division error.
2020-10-20 12:45:35 +02:00
svewa
04662336fa don't fund channels with more than 16777215sat, don't require confs on UTXOs to fund a channel 2020-06-11 13:17:34 +02:00
Sven
c37e0a4108 G.node -> G.nodes 2020-06-06 17:59:22 +02:00
Antoine Poinsot
bfab383959 No more pylightning imports !
```
$ grep -rE '^import lightning$|^from lightning'
```

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-04-30 15:07:56 +02:00
darosior
e426f6738e Update to pyln-client
This updates all plugins *which already have requirements.txt* to
pyln-client from pylightning.
2019-12-27 17:17:58 +01:00
José Molina Colmenero
438a7e5974 Fix networkx version
Graph.node has been renamed to Graph.nodes in version 2.4 at provokes a failure when running autopilot
2019-12-13 14:07:02 +01:00
darosior
65be1cedbe Specify startup-only plugins to be non-dynamic 2019-08-13 13:56:22 +02:00
Douglas Rohde
f179522c1c functional peer searching
missing imports, handle RPCError

add dnspython requirement

some error handling when connecting to peers
2019-08-12 19:20:29 +02:00
Ján Sáreník
6d9c5a1f3c Summary: autopilot: add requirements.txt (#34) 2019-05-28 12:06:38 +02:00
Christian Decker
187c66a9b1 autopilot: Add plugin binary and README file
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-04-29 15:42:01 +02:00
Christian Decker
92d2bbe262 donations: Fixed up the README a bit 2019-03-28 16:07:51 +01:00
Christian Decker
478bec2fb5 autopilot: Add a direct copy of Rene's original autopilot code
Just copying it over, not pluginizing it yet.
2019-03-26 14:00:27 +01:00