Commit Graph

327 Commits

Author SHA1 Message Date
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
Michael Schmoock
040b3a3a35 backup: adds a basic README.md 2020-11-27 12:05:51 +01:00
Christian Decker
3a1a89ecf8 backup: Add a warning about the deprecated backup-destination flag 2020-11-25 19:26:44 +01:00
Christian Decker
f34787d065 backup: Rely solely on backup.lock and do not cache writes
Caching writes was causing us some issues if the startup of
`lightningd` didn't complete, i.e., the writes would happen on the
live DB, but we'd forget about them. Since we have the backup.lock
file in same directory as the plugin is running in, we no longer have
to defer the writes. This hugely simplifies our logic.

Fixes #155

Changelog-Fixed: backup: The plugin doesn't lose sync anymore if the startup is interrupted
2020-11-25 19:26:44 +01:00
Christian Decker
630d385a0b backup: Mark the backup-destination option as UNUSED
We'll start relying solely on the `backup.lock` file generated by the
`backup-cli`. But we keep the option so we don't automatically break
all configs that simply updated.
2020-11-25 19:26:44 +01:00
Michael Schmoock
355f0e7745 summary: fix test flakes 2020-11-23 11:54:36 +01:00
Michael Schmoock
2a798864f8 summary: fix bitstamp api 404 2020-11-23 11:54:36 +01:00
Michael Schmoock
5d274f67c4 summary: fix always-use-proxy check 2020-11-23 11:54:36 +01:00
Rusty Russell
6cd4726369 summary: use proxy if configuration says to.
All plugins should take care to do this if config
specifies always-use-proxy!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-11-13 14:24:00 +01:00
Michael Schmoock
df4b422491 fix: flaky test on feeadjuster 2020-11-11 12:00:27 +01:00
Michael Schmoock
dddc893414 doc: adds missing link to feeadjuster 2020-11-11 12:00:27 +01:00
Michael Schmoock
75c4194b03 feeadjuster: adds imbalance limiter 2020-11-11 12:00:27 +01:00
Michael Schmoock
ad9c5df9ef feeadjuster: remove unused loop 2020-11-11 12:00:27 +01:00
Michael Schmoock
9809cc2dfd feeadjuster: fix typos 2020-11-11 12:00:27 +01:00
Christian Decker
b7804408f4 noise: Add missing dependency on psutil>=5 2020-10-21 16:13:29 +02:00