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
Michael Schmoock
9389b4bf0f
autopilot: replaced print's by proper plugin.log calls
2021-09-01 14:22:11 +02:00
Michael Schmoock
5cb1e3e8d8
autopilot: catch and return initialization errors.
2021-09-01 14:22:11 +02:00
Michael Schmoock
aa0efca2bc
autopilot: return messages on run_once
2021-09-01 14:22:11 +02:00
Michael Schmoock
967ff12ca0
autopilot: nits and missing docstrings
2021-09-01 14:22:11 +02:00
Michael Schmoock
4dffeaa719
autopilot: fix broken requirements for python 3.9
...
the old networkx version 2.3 did try to use `fractions.gcd()` which was
deprecated already and is removed for python 3.9. pulling in networkx
version 2.4 works with python 3.9 while also with the code of this
plugin.
2021-09-01 14:22:11 +02:00
Michael Schmoock
1c7b0bb4f4
autopilot: remove support for 0.7.2 clighting
...
This is required becasue current `lightningd` will not start
when using a non-dynamic plugin.
Since clighting version 0.7.2 is very old, we can safely remove this
code.
2021-09-01 14:22:11 +02:00
bit0fun
9d3cf96358
autopilot: Move initialization into a separate thread
2021-09-01 14:22:11 +02:00
Rusty Russell
1612447c09
datastore: don't fail upgrade test if lightningd has real datastore.
...
Reported-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-08-30 07:31:33 +02:00
Michael Schmoock
125b2c650d
feeadjuster: feature to adjust a specific channel
...
This adds an optional paramter to the `feeadjust` method which is `scid`
that will, if set, only adjust one channel. Default remains None which
will adjust all channels.
2021-08-29 13:44:13 +02:00
Rusty Russell
d7bfc2204d
datastore: fix emptying of store into upgraded node.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-08-25 18:10:40 +02:00
Rusty Russell
eac6b087da
datastore: apply feedback from Christian Decker
...
And fix missing blank line (makes flake8 a bit happier).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-08-25 18:10:40 +02:00
Rusty Russell
0b9e6c9517
datastore: change keys into an array.
...
We store this internally as hex, since shelve insists on string keys.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-08-25 18:10:40 +02:00
Rusty Russell
2ec769e05b
datastore.py: update to meet new datastore builtin PR.
...
The new datastore PR now has a generation count; this passes
the tests against that now.
Also copies tests from c-lightning, and adds ugprade test.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-08-25 18:10:40 +02:00