Michael Schmoock
6d1975e3ae
autopilot: fix usage of deprecated value on listfunds
...
The usage of 'value' (satoshis) on listoutputs has been deprecated on v0.12.0.
See upstream #5306
This changes calculations to msat.
2022-12-04 13:16:52 +01:00
Michael Schmoock
2c7eeb9310
autopilot: fix type to msat for _msat option field
...
Having a "_msat" parameter with just an integer in it lead to
other plugins crash on startup because listconfigs could not
be correctly parsed by pyln-client.
2022-12-04 13:16:52 +01:00
Christian Decker
7ef9e6c172
docs: Rename from c-lightning to core-lightning for local plugins
2022-05-13 18:07:13 +02:00
Christian Decker
f877537f8f
autopilot: Migrate to poetry
2022-04-28 12:57:06 +02:00
Michael Schmoock
225b4ca9b7
autopilot: fixme division by zero
...
I don't understand the code at that location, but it can raise
a division by zero in testing environment where no real graph
was accessible because it couldn't be downloaded.
2022-02-21 18:37:37 +01:00
Michael Schmoock
00ebb60a1b
autopilot: sets 'unable to connect' message to warn
2022-02-21 18:37:37 +01:00
Michael Schmoock
e1c063b293
autopilot: improve test_main that is disabled for CI
...
The old skipIf annotation doesn't seem to work correctly:
```
PytestUnknownMarkWarning: Unknown pytest.mark.skipIf - is this a typo?
You can register custom marks to avoid this warning -
for details, see https://docs.pytest.org/en/stable/mark.html
@pytest.mark.skipIf(True, "Test autopilot is hanging on DNS request")
```
2022-02-21 18:37:37 +01:00
Michael Schmoock
8d6248573d
autopilot: fix deprecation warning for dns.resolver.query
2022-02-21 18:37:37 +01:00
Christian Decker
b2a3529720
autopilot: Disable the autopilot test
...
It hangs on DNS lookups...
2021-09-25 15:03:14 +02:00
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