Commit Graph

25 Commits

Author SHA1 Message Date
Rusty Russell
76b16a60b3 drain: fix for latest lightningd which require payment_secret.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-23 22:03:27 +09:30
Michael Schmoock
9fdc57c3a2 drain: fix a broken log statement expansion 2021-06-30 13:01:52 +02:00
Michael Schmoock
8b8ad530a7 drain: nits 2021-06-17 13:00:58 +02:00
Michael Schmoock
eb7546614a drain: have retry_for before maxfeepercent 2021-06-17 13:00:58 +02:00
Michael Schmoock
f05999e208 drain: fix retry_for for multiple chunks 2021-06-17 13:00:58 +02:00
Michael Schmoock
cc485256fd drain: make more use format strings 2021-06-17 13:00:58 +02:00
Michael Schmoock
0bd761f7ef drain: fix waitsendpay timeout could have been negative 2021-06-17 13:00:58 +02:00
Michael Schmoock
0160bb30e0 drain: same getroute default params as rebalance
Limiting at an effective route of len 7 cuts of results
that are less than ~3% likely to succeed.
2021-06-17 13:00:58 +02:00
Michael Schmoock
593fea3de4 drain: fix exclude list and worst_channel direction 2021-06-17 13:00:58 +02:00
Michael Schmoock
04254693ab drain: adds __init__.py and cleanups flake8 nits 2020-11-30 10:38:44 +01:00
Michael Schmoock
7ae25feb1f drain: fix Millisatoshi from float bug
This was compatible in the past but pyln changed and
doing e.g. `10000msat * 0.01 * percentage` became unreliable
on rounding errors.
2020-11-30 10:38:44 +01:00
Michael Schmoock
0b685b45ea drain: fix a negative msat amount edgecase 2020-06-11 13:16:01 +02:00
Michael Schmoock
30463bf169 drain: reduce some log output to debug 2020-06-11 13:16:01 +02:00
Michael Schmoock
bfc160b3c6 fix: typo on RpcError 2020-06-11 13:16:01 +02:00
Michael Schmoock
247ac99711 fix: make receivable_msat really optional for backwards compat 2020-06-11 13:16:01 +02:00
Michael Schmoock
9579baa186 drain: fix error handling 2020-05-23 13:38:01 +02:00
Michael Schmoock
d66ea9f8e5 drain: refactor and cleanup 2020-05-23 13:38:01 +02:00
Michael Schmoock
6f0380bdfb drain: fix receivable and 3ksat margin workaround 2020-05-23 13:38:01 +02:00
Michael Schmoock
eaee585f16 drain: fix zero division edge cases 2020-05-23 13:38:01 +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
Michael Schmoock
65304d4baf drain: cleanups 2019-11-18 11:31:39 +01:00
Michael Schmoock
0881322b59 drain: setbalance command, rewrite drain and fill 2019-11-11 22:58:03 +01:00
Michael Schmoock
194cadd293 drain: document setbalance and todos 2019-11-11 22:58:03 +01:00
Michael Schmoock
e5f6b05226 doc: drain plugin README.md and usage 2019-11-11 22:58:03 +01:00
Michael Schmoock
50876fa29a drain: intial commit 2019-11-11 22:58:03 +01:00