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
Christian Decker
7ef9e6c172
docs: Rename from c-lightning to core-lightning for local plugins
2022-05-13 18:07:13 +02:00
Michael Schmoock
f022ca380d
drain: upgrade testcase for new setchannel command
2022-04-03 17:15:35 +02:00
Michael Schmoock
69e02e23b1
cleanups: feeadjuster, drain and summary
2022-02-17 10:26:54 +01:00
Christian Decker
7ee9d6ca07
drain: Disable the refill test, it was flaky and now it's broken
2022-01-07 14:55:04 +01:00
Michael Schmoock
a829d87c6b
drain: fix KeyError short_channel_id on opening channels
2021-11-18 13:37:33 +01:00
Michael Schmoock
e200c888d4
drain: fix broken success message format
2021-11-18 13:05:44 +01:00
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
guibressan
3aa58770bd
drain: README.md correction
2021-07-23 11:42:37 +02:00
Michael Schmoock
9fdc57c3a2
drain: fix a broken log statement expansion
2021-06-30 13:01:52 +02:00
Michael Schmoock
85b8b440bb
drain: a comment about necessary code duplication
2021-06-29 10:43:56 +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
43618ef155
drain: adds basic test plugin_starts
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
Christian Decker
cff243d5fb
drain: Mark the tests as developer-only
...
They were timing out creating the network.
2021-01-13 11:23:56 +01:00
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