Commit Graph

20 Commits

Author SHA1 Message Date
Christian Decker
c811548feb autopilot: Division by zero everywhere... 2023-01-01 17:14:05 +01:00
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
Michael Schmoock
00ebb60a1b autopilot: sets 'unable to connect' message to warn 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
Michael Schmoock
c4a1a70afe autopilot: return error messages on run-once 2021-09-08 17:54:05 +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
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
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
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
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