Commit Graph

341 Commits

Author SHA1 Message Date
Gálli Zoltán
e2ed65e187 automatic rebalance: review fixes part 2 2020-12-14 21:01:18 +01:00
Gálli Zoltán
06d771539d automatic rebalance: review fixes 2020-12-14 21:01:18 +01:00
Gálli Zoltán
0dee5017b3 automatic rebalance
- rebalances liquidity between channels through circular payments
- automatically selects appropriate channels and executes rebalance
- uses economic fee by default: the rebalance transaction fees are less than the node's default fee, so it is cheaper to fix the liquidity than it can be ruined by transaction forwards
- runs async in the background, sometimes for a very long time (maybe hours)
- tries to rebalance small channels to a 50/50 liquidity ratio and stores remaining liquidity in big channels
- does nothing if there is no cheap enough circular route for rebalance
2020-12-14 21:01:18 +01:00
Michael Schmoock
5f7cef3cf9 autopilot: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
1002a62aa2 probe: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
de5489c1d6 noise: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
e0b2b6e515 zmq: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
844b45bbc4 chore: flake8 nits github sitecustomize.py 2020-12-13 15:36:15 +01:00
Michael Schmoock
e825910af1 summary: adds __init__.py to fix remaining flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
2034c29214 summary: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
258c0e647a jitrebalance: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
3b654a44db donations: test start stop method
also sets default web port to 8088 on the plugin opts,
which should be the same as for the start(port=8088) fuction.
2020-12-13 15:36:15 +01:00
Michael Schmoock
b2a896052a donations: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
72d615446d helpme: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
f2a0f50501 probe: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
35a2016c95 sauron: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
82b1b57690 persistent-channels: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
1e7701f033 backup: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
70719df500 monitor: only use _msat values
also fixes an issue where msat and sat was added falsely
2020-12-13 15:36:15 +01:00
Michael Schmoock
8796f6c6b0 monitor: fix flake8 nits 2020-12-13 15:36:15 +01:00
Michael Schmoock
7e89f5751d monitor: test main function 2020-12-13 15:36:15 +01:00
Zathrasss
5589767998 Added node alias to channel label for human readable legend in prometheus plugin 2020-12-13 15:34:23 +01:00
Gijs van Dam
eb748ffe19 Keep the orginal comment 2020-12-11 11:11:16 +01:00
Gijs van Dam
4f7e9da3db Fix example test
The example test uses a rpc call `summary` that isn't available (anymore)
The assert should be lowercase, otherwise it fails.
2020-12-11 11:11:16 +01:00
Christian Decker
b0d462a303 noise: Add total_messages key when returning a message 2020-12-11 11:03:22 +01:00
Christian Decker
d738a77c6e noise: Fixup documentation about waiting for next message 2020-12-11 11:03:22 +01:00
Michael Schmoock
1f05674b5b backup: cleanup flake8 nits 2020-12-11 11:01:02 +01:00
Michael Schmoock
be523aa54f backup: restore default filename lightningd.sqlite3 2020-12-11 11:01:02 +01:00
Michael Schmoock
9591c1b31e backup: doc fix that restore needs a file not a dir 2020-12-11 11:01:02 +01:00
Christian Decker
092b295d06 backup: Rewrite erroneously expanded SQL stmts on-the-fly
Seems to have little to no performance impact.
2020-12-11 10:52:23 +01:00
Christian Decker
e6d26b479c backup: Add a test to reproduce #158 2020-12-11 10:52:23 +01:00
Christian Decker
e22a65ed30 readme: Update the build badge 2020-12-02 13:10:44 +01:00
Christian Decker
0a56088d98 sendinvoiceless: Remove in favor of the built-in keysend
Keysend is more secure, has a higher success-rate and doesn't require
both a a route to the destination and back.
2020-12-02 11:11:44 +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
Christian Decker
df932b986d travis: Time to say goodbye travis-ci... 2020-12-02 11:04:44 +01:00
Christian Decker
33000ea4e2 gha: Add Github Actions configuration 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
96a5ff8306 feeadjuster: fix check-python flak8 nits 2020-11-29 16:30:02 +01:00
Michael Schmoock
d38cad534a feeadjuster: remaining test flakes and cleanups 2020-11-29 16:30:02 +01:00
Antoine Poinsot
8c2be06595 feeadjuster: test fee adjustment in init
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-11-29 16:30:02 +01:00
Antoine Poinsot
b9f321d586 feeadjuster: misc cleanups in imbalance test
Be sure to catch the actual line we want to catch (one per scid), and
remove an unused variable.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-11-29 16:30:02 +01:00
Gálli Zoltán
00fe0c209e feeadjuster: final nits 2020-11-28 14:49:26 +01:00
Gálli Zoltán
7c798a423b feeadjuster: nit fixes
- no default parameter for maybe_setchannelfee
- using fstring
- log adjustment function name instead of reference
2020-11-28 14:49:26 +01:00
Gálli Zoltán
6bbd26af18 feeadjuster: review fixes
- forcefeeadjust method becomes feeadjust
- call feeadjust in plugin init
- prevent calling setchannelfee multiple times with the same parameters
- new optional get_ratio_hard and get_ratio_soft functions
- safety check in get_ratio functions
- maybe_setchannelfee is more concise thanks to @m-schmoock
- new test cases by @m-schmoock
2020-11-28 14:49:26 +01:00
Gálli Zoltán
ca518fd291 feeadjuster: forcefeeadjust can run after a successful payment too 2020-11-28 14:49:26 +01:00
Gálli Zoltán
a431fe0495 feeadjuster: method to adjust all existing channels
After start using this plugin, now you have a method to adjust fees for all of your channels. Ideally called only once.

Also, now it is allowed to customize "feeadjuster-ratio-base" to set up fee ratio:
New fee = <default fee> * feeadjuster-ratio-base**(0.5 - <our liquidity ratio>)
2020-11-28 14:49:26 +01:00
Michael Schmoock
0cbee3fc48 backup: fix loglevel to just INFO 2020-11-27 12:05:51 +01:00