Commit Graph

598 Commits

Author SHA1 Message Date
Christian Decker
b65fbc541f ci: Revert bitcoind update
We don't yet have the stripped bundles
2022-01-07 14:58:55 +01:00
Christian Decker
7ee9d6ca07 drain: Disable the refill test, it was flaky and now it's broken 2022-01-07 14:55:04 +01:00
Christian Decker
3c2ac14ad8 ci: Reduce the noise of initializing virtualenvs 2022-01-04 18:17:24 +01:00
Vincenzo Palazzo
22923724a9 summary: close the db when the lightningd will stop.
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-12-19 15:17:30 +01:00
Vincenzo Palazzo
a6829450db summary: check for all the extension of the db
Reported by: nathanael on IRC

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-12-19 15:17:30 +01:00
Vincenzo Palazzo
4d7ed5cb5f Make a sanity check during the initialization of the db
This commit try to solve the following exception with an additional sanity check:

```
{
   "code": -32600,
   "message": "Error while processing summary: 'Plugin' object has no attribute 'persist'",
   "traceback": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.8/site-packages/pyln/client/plugin.py\", line 627, in _dispatch_request\n    result = self._exec_func(method.func, request)\n  File \"/usr/local/lib/python3.8/site-packages/pyln/client/plugin.py\", line 609, in _exec_func\n    return func(*ba.args, **ba.kwargs)\n  File \"/home/_lightning/plugins/summary.py\", line 124, in summary\n    addpeer(plugin, p)\n  File \"/var/git/plugins/summary/summary_avail.py\", line 7, in addpeer\n    if pid not in p.persist['peerstate']:\nAttributeError: 'Plugin' object has no attribute 'persist'\n"
}
```

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-12-19 15:17:30 +01:00
Christian Decker
38d1f337a9 historian: Do not crash if we get an unknown address type 2021-12-19 15:15:37 +01:00
Christian Decker
7d3e7a12a4 readme: Add @andrewtoth's listmempoolfunds 2021-12-19 15:15:37 +01:00
LightningHelper
bcebb1ba2a added fee per channel
Knowing the fee per channel is very useful for fee selection.
I assume an option can be added to show the fees only if --details is an argument, but it will make the code a bit less clean.
2021-12-13 14:20:29 +01:00
Christian Decker
daff5ecd7a ci(Mergify): configuration update
Signed-off-by: Christian Decker <null>
2021-12-13 13:49:00 +01:00
Christian Decker
1115abf34c ci(Mergify): configuration update
Signed-off-by: Christian Decker <null>
2021-12-13 12:54:54 +01:00
ajpwahqgbi
65ddf6477e rebalance: Print human-readable route details with satoshi units and node aliases 2021-12-13 11:56:06 +01:00
Jan Sarenik
5c4ffa2bbf donations/README.md: Default port is 8088 2021-12-12 16:51:53 +01:00
Christian Decker
fa31e0336f ci(Mergify): configuration update
Signed-off-by: Christian Decker <null>
2021-12-12 15:54:04 +01:00
Vincenzo Palazzo
1ddee5221e Adding go-lnmetrics.reporter
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-12-12 15:31:38 +01:00
Christian Decker
8480955a7f ci(Mergify): configuration update
Signed-off-by: Christian Decker <null>
2021-12-12 14:00:09 +01:00
Christian Decker
3c3d5efa50 ci(Mergify): configuration update
Signed-off-by: Christian Decker <null>
2021-12-12 13:57:42 +01:00
Christian Decker
aadd77544e ci(Mergify): configuration update
Signed-off-by: Christian Decker <null>
2021-12-12 13:52:05 +01:00
Christian Decker
e8aa2291b6 donations: Pin wtforms to 2.3.3
The new upgrade broke flask-wtf.
2021-12-12 13:45:13 +01:00
Christian Decker
a5d59bd486 command: Fix tests not working after ping changed 2021-12-12 13:45:13 +01:00
Christian Decker
1a71205755 gci: Minimize extra pip dependencies 2021-12-12 13:45:13 +01:00
Christian Decker
16b9cf55d1 ci: Fetch all tags on CI so pyln versions can be recognized 2021-12-12 13:45:13 +01:00
Christian Decker
4a5314cfd5 ci(Mergify): configuration update
Signed-off-by: Christian Decker <null>
2021-12-11 15:09:11 +01:00
Michael Schmoock
a829d87c6b drain: fix KeyError short_channel_id on opening channels 2021-11-18 13:37:33 +01:00
Michael Schmoock
e200c888d4 drain: fix broken success message format 2021-11-18 13:05:44 +01:00
Michael Schmoock
2560a9a85f rebalance: include rebalancereport in testing 2021-11-17 11:20:56 +01:00
Gálli Zoltán
57edc6cd38 rebalance: get_max_amount start with the original amount
The first amount to try is the original amount. After a fail, `rebalanceall` starts to divide it by 4.
2021-11-17 11:18:39 +01:00
Gálli Zoltán
20d7bbb212 rebalancereport calls listpays once
I had several successful rebalances, and when I call `rebalancereport` it takes some time to collect info about them.
A possible performance improvement: `rebalancereport` does not call `listpays` for every rebalance one by one, but only once.
In my case, this changes the execution time from ~140 secs to ~7 secs.
2021-11-17 11:18:39 +01:00
Antoine Poinsot
c16c564c2c sauron: best effort detection of invalid raw blocks
It happens that Esplora will send us trimmed blocks (both my personal
instance and blockstream.info, fwiw). Try to detect it without parsing
the entire block on our side.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2021-09-25 16:06:26 +02:00
Antoine Poinsot
dc3f691ea1 sauron: fail early if we can't get block hash in getrawblock
It's a bit of duplication but is nonsensical to make a block request if
we couldn't get the block hash.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2021-09-25 16:06:26 +02:00
Christian Decker
d013450f14 historian: Instead of exiting just skip large messages
This check was introduced to protect against the length being
corrupted but we now get some node_announcements with huge
feature-bits, triggering this rule. Let's skip them instead.
2021-09-25 15:48:19 +02:00
Christian Decker
b2a3529720 autopilot: Disable the autopilot test
It hangs on DNS lookups...
2021-09-25 15:03:14 +02:00
Christian Decker
6945b2dcf8 git: Add reports to .gitignore 2021-09-25 15:03:14 +02:00
Christian Decker
b107a2aa50 gci: Missing lightning build dependencies 2021-09-25 15:03:14 +02:00
Christian Decker
dd7e2e2bff gci: Use the pyln-proto from the repository too 2021-09-25 15:03:14 +02:00
Christian Decker
e6ae2fedee gci: Fix Github Actions 2021-09-25 15:03:14 +02:00
Christian Decker
80890131e5 paytest: Fix an error when we unexpectedly get a LegacyPayload
Reported-by: Rene Pickhardt <@renepickhardt>
2021-09-22 12:03:33 +02:00
Michael Schmoock
c4a1a70afe autopilot: return error messages on run-once 2021-09-08 17:54:05 +02:00
Rusty Russell
a7b7c56adc commando: delete no-datastore test, since it's now built-in.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
d059290f8b commando: minor cleanups to keep flake8/mypy happy.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
692e117959 commando: add unique id as we hand our runes.
This allows us to blacklist them in future.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
ed836894eb commando: update now datastore uses arrays for keys
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
a903208121 commando: don't let readonly default read the datastore.
That... would be dumb, since it holds the master secret!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
02d6bbbf36 requirements.txt: update to runes version which is correctly packaged.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
05160d4724 commando: remove gratuitous logging.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
b1dace0cd4 commando: don't deadlock if the make us call into ourselves.
For now we only support calling into commando-rune, not chaining commando
commands!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
ad27d4f624 commando: optionally use runes for authorization.
Now it requires the datastore (or datastore.py plugin), if you want
to use runes.  The simple reader/writer control lists don't require
that, but for simplicity we always require the runes Python module.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Rusty Russell
c05c8bf300 Feedback from GH Review.
1. Fix README.md dynamic plugin example (needs keywords, abspath!)
   (pointed out by @carnhofdaki).
2. Define magic number we use (suggested by @FreePietje)
2021-09-08 10:11:58 +09:30
Rusty Russell
5d062830ba commando: reckless? Try going commando!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-08 10:11:58 +09:30
Michael Schmoock
de60a232e3 autopilot: adds basic tests to ensure plugin is runable 2021-09-01 14:22:11 +02:00