Commit Graph

517 Commits

Author SHA1 Message Date
Michael Schmoock
85b8b440bb drain: a comment about necessary code duplication 2021-06-29 10:43:56 +02:00
Michael Schmoock
a83ec975ba summary: remove code duplication wait_for from pyln.testing.utils 2021-06-29 10:43:56 +02:00
Michael Schmoock
4c0e3aba67 rebalance: test for additional stop msg 2021-06-29 10:42:16 +02:00
Michael Schmoock
70d0977371 rebalance: return last rebalanceall_msg even when nothing was stopped
When the last `rebalanceall` run terminated silently in the background,
it is still useful to get the ending message of that run.

This change will make the `rebalancestop` method to return the same
'nothing to stop' message plus the rebalanceall_msg when there
was a `rebalanceall` somewhere in the past.
2021-06-29 10:42:16 +02:00
Michael Schmoock
ed98e657c1 rebalance: nits 2021-06-29 10:42:16 +02:00
Michael Schmoock
e7f2dbb606 feeadjuster: use listchannels by destination dynamically 2021-06-25 16:31:22 +02:00
Michael Schmoock
1d81d70fa4 feeadjuster: logs fee_strategy on startup 2021-06-25 16:31:22 +02:00
Michael Schmoock
0062e92011 summary: fix another flake
This will make the test to wait for one node to see that the second node
disconnected after using .stop().

For that it adds wait_for(lambda) testing utils method.
2021-06-25 13:34:58 +02:00
Michael Schmoock
321e5cecf1 monitor: fix flakyness
Sometimes a channels funding allocation was not yet readable
via listpeers which is why this plugin test was flaky.

Also makes use of funding_msat instead of deprecated fields.
2021-06-25 12:51:25 +02:00
Vincenzo Palazzo
5f3bb380cd Adding Java API to the list, and another bitcoin backend
The bitcoin backend plugin is inspired by #112 #214

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-06-25 11:52:50 +02:00
Michael Schmoock
5475f256ed summary: nits 2021-06-24 14:19:55 +02:00
Michael Schmoock
2afe310a6e summary: makes test_summary_persist more precise 2021-06-24 14:19:55 +02:00
Michael Schmoock
37022fbc15 summary: logs summary.dat shelve usage 2021-06-24 14:19:55 +02:00
Michael Schmoock
b862247e2b summary: logs PeerThred activity to debug
This will eliminate a potential flakyness of the tests
because we can use that log as a marker to wait for the PeerThread.
2021-06-24 14:19:55 +02:00
Zoltán Gálli
5f0fce5820 rebalance: measure liquidity health (#257)
rebalance: measure liquidity health
2021-06-24 11:42:58 +02:00
Michael Schmoock
a2c58e647d feeadjuster: adds switchable per channel fee strategy 2021-06-23 20:00:11 +02:00
Michael Schmoock
445bca51cb feeadjuster: simplified get_chan 2021-06-23 20:00:11 +02:00
Michael Schmoock
2074eeb30d feeadjuster: use listpeers to get local fees
Using gossip is not reliable and having fees in `listpeers` is
supported in `lightningd` since 0.9.3 (Jan 21).
2021-06-23 20:00:11 +02:00
Michael Schmoock
3e56d4d4d3 feeadjuster: cleanups 2021-06-23 20:00:11 +02:00
Christian Decker
6a3a90ae08 noise: Disable flaky test 2021-06-22 19:18:13 +02:00
Christian Decker
5add7e54b2 request: Fixup requirement to fix serializer issue 2021-06-22 19:18:13 +02:00
Christian Decker
b327866631 paytest: Change amount in test to ensure at least one split 2021-06-22 19:18:13 +02:00
Christian Decker
daeded590f donations: Shut the plugin up about warnings from Flask 2021-06-22 19:18:13 +02:00
Christian Decker
e4fed81efd donations: Update the dependencies to remove warnings 2021-06-22 19:18:13 +02:00
Christian Decker
296cb34464 ci: Install master pyln-testing when testing against master c-lightning 2021-06-22 19:18:13 +02:00
Gálli Zoltán
ad53311d31 rebalance: msatfactor is not a threshold 2021-06-17 13:31:13 +02:00
Gálli Zoltán
267a464293 rebalance report: fee as ppm 2021-06-17 13:31:13 +02:00
Gálli Zoltán
924a59fc6e rebalance report 2021-06-17 13:31:13 +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
b602c6ef7d rebalance: fix docstring 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
775fd8a3c2 rebalance: fix testcase
We changed the return message on `rebalancestop`
in the latest commitm which the testcase did not expect.
2021-06-15 10:41:12 +02:00
Michael Schmoock
b51633889a rebalance: docstring nits 2021-06-15 10:34:45 +02:00
Michael Schmoock
fb9f4688df rebalance: retruns rebalanceall stats on rebalancestop 2021-06-15 10:34:45 +02:00
Gálli Zoltán
132b500c44 getroute_method parameter for rebalance 2021-06-15 09:07:47 +02:00
Gálli Zoltán
2d97b86fcc getroute method name: default->iterative 2021-06-15 09:07:47 +02:00
Gálli Zoltán
fac97fcabc rebalance: interchangeable route search strategy 2021-06-15 09:07:47 +02:00
Michael Schmoock
c36851529c rebalance: code nits 2021-06-08 23:48:59 +02:00
Michael Schmoock
b9c2328400 rebalance: make erring_node count configureable 2021-06-08 23:48:59 +02:00
Michael Schmoock
444c6c41e6 rebalance: switches argument order of retry_for and maxfeepercent
The parameter `maxfeepercent` is rarely changed when using manual rebalances.
However `retry_for` is. Swithcing these parameters gives to option to
easily retry with a higher timeout on the console without naming all
arguments.
2021-06-08 23:48:59 +02:00
Michael Schmoock
309a75b03d rebalance: rebalanceall with maxhops 6 and msatfactor 1 2021-06-08 23:48:59 +02:00
Michael Schmoock
039e972cdf rebalance: fix maxhops iteration 2021-06-08 23:48:59 +02:00
Michael Schmoock
4537b0cdb3 rebalance: renames msat_factor to jsut msatfactor 2021-06-08 23:48:59 +02:00
Michael Schmoock
afcc7b5357 rebalance: make maxhops and msat_factor configureable 2021-06-08 23:48:59 +02:00