Commit Graph

134 Commits

Author SHA1 Message Date
Christian Decker
9ef45ae83c jitrebalance: Skip tests if not developer, gossip is too slow 2020-01-07 21:21:11 +01:00
Christian Decker
7479c342c4 jitrebalance: Make the plugin TLV compatible 2020-01-07 21:21:11 +01:00
Christian Decker
c453e8982f jitrebalance: First version of the JITrebalance plugin
A simple implementation of a jit-rebalance plugin based in the idea of
@renepickhardt. Upon receiving an HTLC that we are supposed to forward check
whether the channel has sufficient capacity to forward. If that's not the case
we need to rebalance. For this we compute a circular route through some other
nodes, returning funds on the edge we are supposed to use when
forwarding. This means we rebalance the channel just enough to make forwarding
possible.

This only implements the simple version, without FOAF advertisements of free
rebalancings, but it already works rather nicely.

Suggested-by: Rene Pickhardt <@renepickhardt>
Signed-off-by: Christian Decker <@cdecker>
2020-01-07 21:21:11 +01:00
Christian Decker
c6e3b9f011 pytest: Rename start tests to reflect the plugin under test 2019-12-27 17:17:58 +01:00
darosior
ba85a5796a README: Add csvexportpays to the table
And fix indentation in test sample
2019-12-27 17:17:58 +01:00
darosior
e574a717b1 Add pyln-client requirement to all plugins 2019-12-27 17:17:58 +01: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
darosior
21e37c74d6 Update lightning-qt (second take) 2019-12-24 22:21:04 +01:00
darosior
a005cbbafe lightning-qt: update to master 2019-12-24 15:51:37 +01:00
darosior
20b29f6b59 cl-zmq: add requirements 2019-12-19 14:36:20 +01:00
darosior
d36402d085 cl-zmq: add basic tests 2019-12-19 14:36:20 +01:00
darosior
f3673ab0a9 sendinvoiceless: add basic tests 2019-12-19 14:36:20 +01:00
darosior
9a9f95c6d1 rebalance: add basic tests 2019-12-19 14:36:20 +01:00
darosior
fc8ab0cd99 prometheus: basic tests 2019-12-19 14:36:20 +01:00
darosior
8f0b1a443c probe.py: add basic tests 2019-12-19 14:36:20 +01:00
darosior
a8ffaa7524 persistent-channels: add basic tests 2019-12-19 14:36:20 +01:00
darosior
351c6cec2a monitor: add basic starting test 2019-12-19 14:36:20 +01:00
darosior
0185dbd9fd helpme.py: basic starting tests 2019-12-19 14:36:20 +01:00
darosior
438dee964a donations.py: basic tests
This just checks that the plugin starts (both dynamically and
satistically as it doesn't signal to be static).
2019-12-19 14:36:20 +01:00
Christian Decker
f8ea0e3562 travis: Switch to python 3.7 in pyenv 2019-12-19 14:35:40 +01:00
Jarret Dyrbye
ec65c873b6 ZeroMQ publisher plugin 2019-12-16 15:38:38 +01:00
darosior
eab10a051b pytest: test summary exclude option
And some drive-by minor cleanups
2019-12-13 20:12:03 +01:00
darosior
db4357a766 summary: add an 'exclude' parameter to the summary command
This is useful to get an idea of the balance proportions of your
channels when you have a big channel that mess them up.
2019-12-13 20:12:03 +01:00
José Molina Colmenero
438a7e5974 Fix networkx version
Graph.node has been renamed to Graph.nodes in version 2.4 at provokes a failure when running autopilot
2019-12-13 14:07:02 +01:00
Christian Decker
c8761a7fb7 readme: Update the pyln dependencies and add an explainer on testing 2019-12-09 14:31:14 +01:00
Christian Decker
e8d4d8dc77 travis: Fill in the test matrix
The plugins will have to run in a number of different configurations, so let's
test them.
2019-12-09 14:31:14 +01:00
Christian Decker
81199ae3e6 summary: Improve on the dummy test 2019-12-09 14:31:14 +01:00
Christian Decker
972ea8dfd5 travis: Add the travis badge to the readme 2019-12-09 14:31:14 +01:00
Christian Decker
6d7bdc370b summary: Add dummy test to see that travis is working 2019-12-09 14:31:14 +01:00
Christian Decker
ba44eee2a7 csvexportpays: Change git URL to non-authenticated https scheme 2019-12-09 14:31:14 +01:00
Christian Decker
31a5ce8700 travis: Add initial travis config 2019-12-09 14:31:14 +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
dependabot[bot]
81f095ee5a build(deps): bump pillow from 5.4.1 to 6.2.0 in /donations
Bumps [pillow](https://github.com/python-pillow/Pillow) from 5.4.1 to 6.2.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/5.4.1...6.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-27 12:20:52 +01:00
darosior
5262f065d4 probe: pass the request argument to thread 2019-10-24 15:18:13 +02:00
Michael Schmoock
21f25c5596 sendinvoiceless: restore Python3.5 compat 2019-09-30 13:30:34 +02:00
fiatjaf
e8f5a8f4b2 Improve "more plugins" links 2019-09-27 14:52:55 +02:00
darosior
779e0dce5a probe: use 'listsendpays' instead of 'listpayments'
'listpayments' is not part our lives anymore
2019-09-20 19:43:30 +02:00
darosior
0c217383e8 probe: change parameters order to allow threading
Otherwise the thread start() would return 'probe(): missing one positionnal argument'
2019-09-20 19:43:30 +02:00
darosior
94c641ea58 rebalance: restore Python3.5 compat
Support old snakes that have not shed yet
2019-09-06 17:26:23 +02:00
darosior
2448e26618 monitor: use human readable outputs
And some drive-by cleanups
2019-09-06 17:25:35 +02:00
Christian Decker
3532288db1 probe: Add the traceroute method to the probe plugin
This just tries all prefixes of a route to the given node, returning a failure
as soon as it hits the channel that got the payment stuck.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-09-02 22:58:48 +02:00
Christian Decker
8b24e19bbb probe: Add probe-stats method to show some general statistics
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-09-02 22:58:48 +02:00
Christian Decker
e4f8d2d0b8 probe: Poll for probe completion instead of waiting
This just polls pending probes and calls a callback upon completion.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-09-02 22:58:48 +02:00
Christian Decker
0484d88cda probe: Made probe an async_method so we can run in parallel
Since `probe` may take a while, or hang altogether we better make it async so
we can run multiple ones in parallel. The next step is to have a sweeper
thread that just checks all pending probes.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-09-02 22:58:48 +02:00
Christian Decker
439ff65f14 probe: Allow probing for a specific node
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-09-02 22:58:48 +02:00
Michael Schmoock
bdd19f82a8 sendinvoiceless: round HTLC fees up 2019-09-02 22:58:01 +02:00