Commit Graph

115 Commits

Author SHA1 Message Date
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
Michael Schmoock
39bc7b6deb fix: making sum() of funds iteration did not work on non-numeric 2019-09-02 22:55:42 +02:00
Matt Whitlock
477bdd8f61 rebalance: round HTLC fees up
BOLT#7 requires that nodes "SHOULD accept HTLCs that pay a fee equal to or greater than:
fee_base_msat + ( amount_to_forward * fee_proportional_millionths / 1000000 )".

The code in rebalance.py:setup_routing_fees was not strictly meeting the above requirement, as it was using truncating integer division to calculate the proportional part of the fee, which typically results in a fee that is strictly less than the theoretical, infinite-precision, required fee. Some node implementations may allow rounding down here, but some do not, resulting in sporadic WIRE_FEE_INSUFFICIENT errors.

This commit changes the fee calculation in setup_routing_fees so that it always rounds up to the next whole millisatoshi, thereby eliminating many WIRE_FEE_INSUFFICIENT errors and improving the success rate of the rebalance command.
2019-08-29 14:13:57 +02:00
Simon Vrouwe
9e25aad3d1 helpme: Wrap response in simple format-hint, so lightning-cli prints it as -H 2019-08-16 15:20:34 +02:00
darosior
5a0a3a215f Add a 'requirements.txt' to probe plugin
And remove blank lines from monitor's and persistant-channels' requirements
2019-08-13 13:56:49 +02:00
darosior
65be1cedbe Specify startup-only plugins to be non-dynamic 2019-08-13 13:56:22 +02:00
darosior
93cb498c04 Add a link to the reckless plugin manager 2019-08-12 23:46:43 +02:00
Douglas Rohde
f179522c1c functional peer searching
missing imports, handle RPCError

add dnspython requirement

some error handling when connecting to peers
2019-08-12 19:20:29 +02:00
Christian Decker
62498ed1de added a monitoring plugin to see health of peers and channels 2019-07-27 01:12:06 +02:00
Rusty Russell
5bb3061ade helpme: new plugin.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-07-26 15:29:59 +02:00
darosior
6cebe21ff7 Add Javascript library 2019-07-26 15:26:16 +02:00
darosior
5eeb5dda0a Add C++ plugins library 2019-07-26 15:26:16 +02:00
Christian Decker
0d5322eeec csvexportpays: Added submodule to export payments as a CSV 2019-07-18 19:21:51 +02:00
Richard Bondi
899f0a0867 add remoteRPC plugin 2019-06-17 21:47:57 +02:00
Michael Schmoock
cd1b751f53 rebalance: fix route direction
This will set the correct `direction` on manual route hops (in/out).
Before this was not set, resulting in WIRE_FEE_INSUFFICIENT errors,
if fee was calcualted inconsistently with `direction`.
2019-06-11 15:56:36 +02:00
Michael Schmoock
300b963c9d rebalance: fix amount None 2019-06-03 19:26:26 +02:00
Michael Schmoock
f6309a2da0 Cleanup rebalance sendinvoiceless (#33)
* doc: cleanup and key-value for optional parameters

* rebalance: cleanup and refinements

* sendinvoiceless: cleanup and refinements

* summary: reflects upcoming changes of pylightning to_approx_str

* rebalance: check peer connection on local channels
2019-05-31 22:52:43 +02:00
Ján Sáreník
6d9c5a1f3c Summary: autopilot: add requirements.txt (#34) 2019-05-28 12:06:38 +02:00
Michael Schmoock
89c95e4fe8 rebalance: fix issue 29
I think this issue happens on older version of pylightning only.
2019-05-23 12:32:25 +02:00
fiatjaf
ec3037388c add my own plugin collection
At https://github.com/fiatjaf/lightningd-gjson-rpc/tree/master/cmd.
Including `waitpay` and `webhook` plugins for now.
2019-05-21 11:35:23 +02:00