Commit Graph

25 Commits

Author SHA1 Message Date
Christian Decker
b0784e4ae2 meta: Add development requirements where missing
We're about to start testing in isolation, so better make sure that
each plugin can be tested in isolation.
2021-01-13 11:23:56 +01:00
Christian Decker
682ea86cbc drain: Mark the drain_and_refill test as flaky
It sometimes does not raise the expected error, so let's rerun it
until we've addressed the flakyness
2020-12-02 11:04:44 +01:00
Michael Schmoock
04254693ab drain: adds __init__.py and cleanups flake8 nits 2020-11-30 10:38:44 +01:00
Michael Schmoock
b7abc6f188 drain: update requirements.txt 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
9ee7006de2 drain: test openchannel instead of fund_channel
The usage of fund_channel is no longer recommended as of
main repo e802b128

The return value of pyln funchannel has changed to a tuple
as of main repo de34f08b

The usage of fundchannel is no longer supported by Travis
for unknown reasons
2020-11-30 10:38:44 +01:00
Michael Schmoock
08f3da8706 drain: fix test for clnd with exp features 2020-09-19 17:00:19 +02:00
Christian Decker
581a2fd568 drain: Disable test_setbalance if EXPERIMENTAL_FEATURES=1
Amounts seem not to match anymore, need to look into it.
2020-08-28 23:06:30 +02:00
Michael Schmoock
6de448358a drain: refine tests 2020-06-11 13:16:01 +02:00
Michael Schmoock
0b685b45ea drain: fix a negative msat amount edgecase 2020-06-11 13:16:01 +02:00
Michael Schmoock
395577ec66 drain: utils - adds get_theirs helper 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
920f414ab0 drain: adds test cases 2020-05-23 13:38: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