Commit Graph

756 Commits

Author SHA1 Message Date
Michael Schmoock
30003279e3 summary: check and dismiss old datastores 2023-02-10 18:33:43 +01:00
Michael Schmoock
e79545e9a2 summary: save datastore usage by compater objects 2023-02-10 18:33:43 +01:00
Michael Schmoock
b52360c0cd summary: replace shelve with datastore using pickle
Usage of python shelve caused a lot of issues in the past.
2023-02-10 18:33:43 +01:00
Michael Schmoock
07f9fcfa78 summary: optimize table alignment 2023-02-10 18:33:43 +01:00
Michael Schmoock
6e2b1274fc summary: lowercase the given parameter
Also renames the 'PERMIL' column to 'PPM' which, at least for me, is
more common when it comes to fees.
2023-02-10 18:33:43 +01:00
Michael Schmoock
24bad1c988 summary: adds sortkey parameter and argument 2023-02-10 18:33:43 +01:00
Michael Schmoock
d1d89047bf summary: sort output by scid per default
The sort order got changed to random(?) I think when cln changed to have
multiple channels per peer supprt.

This restores the old sort by scid order, which is nice since old
channels are upfront.

Maybe we can add other orderings in later commits by copfig options and
`summary` method paramters.
2023-02-10 18:33:43 +01:00
Michael Schmoock
b207d2ca9f summary: fix db init when shelve has binary format updates
Sometimes when shelve gets updated, the binary format can differ
and result in first write errors on a re-opened db.

This tries to check for that and drop DB in this case.
2023-02-10 18:33:43 +01:00
Joel Klabo
0b15222df7 nostrify: Broken Link in README 2023-02-09 14:13:13 +01:00
Joel Klabo
c78970d943 nostrify: Adding v0.1.0 2023-02-08 19:00:13 +01:00
Michael Schmoock
41363694de dontaions: fix testcase test_donation_server 2023-02-08 15:32:42 +01:00
Michael Schmoock
ac86a3008b dontaions: rename options to match plugin name 2023-02-08 15:32:42 +01:00
Michael Schmoock
c8a728cdd7 donations: fix the stop method 2023-02-08 15:32:42 +01:00
Michael Schmoock
e0447276b5 donations: fix usage of deprecated validators 2023-02-08 15:32:42 +01:00
Michael Schmoock
16d49e4050 rebalance: fix cli upstream changes on listpeerchannels 2023-02-08 15:32:42 +01:00
Michael Schmoock
fe07f0d578 summary: fix cli upstream changes on listpeerchannels 2023-02-08 15:32:42 +01:00
Michael Schmoock
42fd4c4d32 monitor: fix cli upstream changes on listpeerchannels 2023-02-08 15:32:42 +01:00
Michael Schmoock
45fe611d44 jitrebalance: fix cli upstream changes on listpeerchannels 2023-02-08 15:32:42 +01:00
Michael Schmoock
2b7d41bd48 drain: fix cli upstream changes on listpeerchannels 2023-02-08 15:32:42 +01:00
Michael Schmoock
f7bf735c62 helpme: fix cli upstream changes on listpeerchannels 2023-02-08 15:32:42 +01:00
laanwj
1b8d5dde57 rebalance: Re-raise all exceptions in cleanup()
This solves an apparent logic error where errors that are not a subclass
of RpcError would be reported as succesful rebalance. Change it so that
they are re-raised too, so the caller can report them.

Should fix #355.
2023-01-09 15:37:51 +01:00
Gálli Zoltán
1b73ad8877 rebalance: handle events while rebalancing 2023-01-09 14:07:46 +01:00
elsirion
d71c164188 Add median multiplier option to feeadjuster docs 2023-01-09 13:27:11 +01:00
elsirion
b52afa1762 Add option to scale median fee adjustment strategy 2023-01-09 13:27:11 +01:00
Vincenzo Palazzo
e70a526a05 increase pyln-client version in summary
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2023-01-06 17:02:31 +01:00
feelus
28b41335b5 drain: Update README.md
Fix flipped parameter order in documentation.
2023-01-06 14:51:20 +01:00
Michael Schmoock
f3d741e7af chore: some cleanups and minor fixes
This removes debug output and corrects some code nits that have
been introduced by the big CI restoration PR #418
2023-01-02 14:43:05 +01:00
Christian Decker
7f8d4356ed gha: Add a final collection job
This depends on the matrix, but has an easy name that we can hang
other things off of.
2023-01-01 17:14:05 +01:00
Christian Decker
7d25585273 gha: Only run on pushes to master
Otherwise PRs from branches to master always spawn duplicate jobs.
2023-01-01 17:14:05 +01:00
Christian Decker
910718e5f7 gci: Configure auto-cancellation of superceded PRs 2023-01-01 17:14:05 +01:00
Christian Decker
dc09f7d434 request-invoice: Remove the plugin
It's utterly outdated, and has been replaced by a number of other
plugins, no point in keeping it around.
2023-01-01 17:14:05 +01:00
Christian Decker
a1e3eb44d2 autopilot: Relax numpy dependency
It is not compatible across all python versions, so we need installation time resolution :-(
2023-01-01 17:14:05 +01:00
Christian Decker
12a400e386 backup: Temporarily disable no-init test
It is failing since we no longer throw an exception if the daemon dies
while we wait for a log.
2023-01-01 17:14:05 +01:00
Christian Decker
c811548feb autopilot: Division by zero everywhere... 2023-01-01 17:14:05 +01:00
Christian Decker
02b0826023 noise: Migrate noise over to poetry and add TLV support
TLV was removed in 0.12, so we should not be using it ourselves either.
2023-01-01 17:14:05 +01:00
Christian Decker
21d7a49d2f paytest: Lock dependencies 2023-01-01 17:14:05 +01:00
Christian Decker
669b2d4567 autopilot: Remove stale requirements.txt file 2023-01-01 17:14:05 +01:00
Christian Decker
b20d966320 backup: Remove stale requirements.txt file
It was causing mis-identification as a pip plugin
2023-01-01 17:14:05 +01:00
Christian Decker
8a2267dad2 donations: Migrate donations to poetry 2023-01-01 17:14:05 +01:00
Christian Decker
89598d094b historian: Upgrade dependencies 2023-01-01 17:14:05 +01:00
Christian Decker
719c936140 meta: Move the meta project to py3.7 as pyln-client requires that 2023-01-01 17:14:05 +01:00
Christian Decker
48fbe6448b gci: Further isolate the test runs
Turns out that poetry's directory based venv was reusing the same env
for all tests, making the testing far less isolated than expected.
2023-01-01 17:14:05 +01:00
Michael Schmoock
a22a73478e ci: update pytest
Some jobs were failing with an error that seems to be raised by an
outdated pytest with a newer pytest-rerunfailures. We let pip choose...

```
2022-12-28T16:41:10.1173259Z   File "/tmp/tmp_82tmdi_/lib/python3.7/site-packages/pytest_rerunfailures.py", line 7, in <module>
2022-12-28T16:41:10.1173840Z     from _pytest.resultlog import ResultLog
2022-12-28T16:41:10.1174387Z ModuleNotFoundError: No module named '_pytest.resultlog'
```
2023-01-01 16:04:20 +01:00
Michael Schmoock
e1e6a2258a workflows: increase timeout to 60 minutes 2023-01-01 16:04:20 +01:00
Michael Schmoock
5609865631 ci: remove Flask as its dep of testing anyway
Also specify a more recent minimal version of MarkupSafe and itsdangerous
2023-01-01 16:04:20 +01:00
Michael Schmoock
245e6a83da ci: install pyln client and testing via cln repo 2023-01-01 16:04:20 +01:00
Michael Schmoock
9b7cfb45de workflows: adds protobuf-compiler needed for cln-grpc 2023-01-01 16:04:20 +01:00
Michael Schmoock
a32cf006d0 workflows: use poetry on cln to create requirements.txt 2023-01-01 16:04:20 +01:00
Michael Schmoock
f11c9ca6ec workflows: remove use-feature=in-tree-build
Using `--use-feature=in-tree-build` is no longer needed for recent pip versions,
doing so raised:

```
option --use-feature: invalid choice: 'in-tree-build' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
```
2023-01-01 16:04:20 +01:00
Michael Schmoock
4b28f44f53 workflows: remove unspecified python version
Doing `apt-get install python` without a version number raises:
```
    Package python is not available, but is referred to by another package.
```

Since python3 is already on the list, I just removed it.
2023-01-01 16:04:20 +01:00