Commit Graph

746 Commits

Author SHA1 Message Date
Michael Schmoock
67224d0c26 rebalance: fix flake8 code nits 2022-12-27 13:39:30 +01:00
Michael Schmoock
7d5b4a9516 drain: fix flake8 code nits 2022-12-27 13:27:52 +01:00
Michael Schmoock
140efc2269 paytest: fix _msat purge leftover 2022-12-27 13:27:52 +01:00
Michael Schmoock
9c7a70f6ff paytest: fix flake8 code nits 2022-12-27 13:27:52 +01:00
Michael Schmoock
81899006e2 feeadjuster: fix forward_event hook msat parsing
Subscribed notifications have never been handled by `pyln.client.Plugin()`
in a way that for `_msat` keys values have been replaced by `Millisatoshi()`
on the fly. This only was the case for normal JSON request/responses.

On recent cln versions, having `--allow-deprecated-apis=True`,
cln actually returns a string ending with `msat`, which is not
compatible with a `Millisatoshi()` when doing arithmetic operations.

See: https://github.com/ElementsProject/lightning/pull/5798
2022-12-27 12:56:17 +01:00
Michael Schmoock
ec75211f0a feeadjuster: fix python code nits 2022-12-26 13:56:30 +01:00
Michael Schmoock
4d8b258f8b feeadjuster: fix testflake in test_feeadjuster_imbalance 2022-12-26 13:52:00 +01:00
Michael Schmoock
e20eb77885 autopilot: adds missing requirements.txt file 2022-12-20 12:11:13 +01:00
Gálli Zoltán
d836e44b4e rebalance: fix test for multithreading 2022-12-20 10:29:44 +01:00
Gálli Zoltán
381707eaaf rebalance: multithreading
`rebalanceall` can run on multiple threads for faster results
2022-12-20 10:29:44 +01:00
Gálli Zoltán
a778da4e10 feeadjuster: setchannelfee last two parameters are optional
- feeadjuster keeps crashing without this
2022-12-04 21:47:13 +01:00
Gálli Zoltán
29dfc0f3f8 rebalance: rebalanceall can be stopped quickly
waitsendpay could stuck for minutes making rebalancestop unresponsive
2022-12-04 13:58:57 +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
386f2f650b rebalance: rpcversion check for new format 2022-12-02 16:12:29 +01:00
Michael Schmoock
4a5fa4d64e drain: rpcversion check for new format 2022-12-02 16:12:29 +01:00
Michael Schmoock
656068ba09 feeadjuster: rpcversion check for new format 2022-12-02 16:12:29 +01:00
Swapnil Tripathi
1721ff6075 update resources for python-teos 2022-11-14 21:50:50 +01:00
Michael Schmoock
76af2722dc rebalance: adds version check for using status on listpays (#387) 2022-11-04 11:43:00 +01:00
Michael Schmoock
4d3560b129 reqirements: switch to pyln-client 0.12 for backup, drain, feeadj, rebalance and summary
This is required as newer versions of cln (>=0.12) use non numeric json
rpc IDs.
2022-11-04 11:43:00 +01:00
Michael Schmoock
2810f4d032 feeadjuster: update forward_event _msat values 2022-11-04 11:43:00 +01:00
Michael Schmoock
3514460ae8 summary: fixes a nasty test flake 2022-11-04 11:43:00 +01:00
Michael Schmoock
2322bf64a8 rebalance: getroute update msatoshi by amount_msat
rebalance: getroute outdated msatoshi by amount_msat
2022-11-04 11:43:00 +01:00
Michael Schmoock
8ed6e3870b rebalance: remove pointless pass-through of plugin paramter 2022-11-04 11:43:00 +01:00
Michael Schmoock
fb3d69200c drain: remove pointless pass-through of plugin paramter 2022-11-04 11:43:00 +01:00
Michael Schmoock
eb4463d43d drain: fixed and reenable test_drain_and_refill 2022-11-04 11:43:00 +01:00
Michael Schmoock
5691f717f4 drain: reenable test_setbalance as it is stable 2022-11-04 11:43:00 +01:00
Michael Schmoock
15e6f61052 drain: use fundchannel instead of openchannel
Affects: tests

Using openchannel does not always guarantee a channel to have a SCID.
Thus `node.get_channel_scid(...)` can raise an error when a channel
was opened using openchannel.
2022-11-04 11:43:00 +01:00
Michael Schmoock
810040430e drain: getroute update msatoshi by amount_msat 2022-11-04 11:43:00 +01:00
Michael Schmoock
093c331f13 drain: cache often used RPC values 2022-11-04 11:43:00 +01:00
Michael Schmoock
a5a2f47d4c drain: get cltv-final from lightningd instead of own option 2022-11-04 11:43:00 +01:00
Gálli Zoltán
ce423836d6 rebalance: listpays use status argument
It is a performance improvement: `rebalancereport` running time changes from 40 secs to 14 secs on my node.
2022-10-26 10:44:06 +02:00
Giovanni Zotta
e625369423 Update README 2022-09-19 18:13:21 +02:00
Giovanni Zotta
c1afe23df6 Add circular to the list of plugins 2022-09-19 18:13:21 +02:00
Michael Clancy
3c81ac1fa8 Fixes the incorrect calculation of number invoices paid (#384) 2022-09-19 10:48:47 +09:30
Michael Clancy
fa567957ea Update helpme to look for funds in an output's 'amount_msat' instead of 'value' 2022-09-19 10:48:47 +09:30
Jan Sarenik
deb960a582 commando: change underscore to dash 2022-09-19 10:47:16 +09:30
Andrew Toth
d1a8db61cb summary: fix attribute errors 2022-09-19 10:45:31 +09:30
Ken Sedgwick
0f42425b65 summary: add fees_collected fiatstr 2022-09-16 12:32:39 +02:00
fiatjaf
c5f0c65c01 align table. 2022-09-16 12:00:29 +02:00
fiatjaf
75e762acc1 add poncho to the list. 2022-09-13 15:59:38 +02:00
joemphilips
373ae69a74 add nloop to README 2022-09-02 17:47:11 +02:00
openoms
0ecd10b27f feeadjuster: exclude list non-required and verbose 2022-08-28 10:45:46 +02:00
openoms
eb03e4fbed add option to exclude channels with nodes
skip setting channels with the IDs in the feeadjuster-exclude.list file
2022-08-24 18:20:10 +02:00
identity unknown
81f66f6185 Add a readme 2022-08-24 18:19:31 +02:00
identity unknown
89c6cb8f9c Add max htlc adjustment 2022-08-24 18:19:31 +02:00
Andrew Toth
6b56db768c readme: Add paythrough plugin link 2022-08-22 12:00:35 +02:00
Seth For Privacy
af8bc417ca Add referenced requirements.txt
This file is referenced in https://lightning.readthedocs.io/BACKUP.html#backup-plugin-and-remote-nfs-mount, but does not exist, making installation and usage of backup plugin much more tricky.

This commit simply adds the two required packages so that the docs are correct now and the plugin can be more easily installed.
2022-08-22 12:00:09 +02:00
Sergi Delgado Segura
5f656a1f0f Replaces python-teos by rust-teos 2022-08-22 11:59:44 +02:00
Ken Sedgwick
8529abd833 summary: use lowercase in bitstamp url 2022-07-30 12:30:19 +02:00