Commit Graph

527 Commits

Author SHA1 Message Date
Rusty Russell
1f6f701bf1 datastore: plugin to replicate datastore commands before next release.
See https://github.com/ElementsProject/lightning/pull/4674
(I manually tested that it passes all the tests there, too!)

When they finally upgrade the node, this automatically puts any
datastore data into the inbuilt datastore and shuts down.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-25 10:56:40 +09:30
Michael Schmoock
424770449a jitrebalance: fix missing payment_secret for sendpay 2021-07-23 17:04:14 +02:00
Rusty Russell
87c9f56f75 jitrebalance: fix test for latest c-lightning which required payment_secret
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-23 22:03:27 +09:30
Rusty Russell
ca375ad367 feeadjuster: fix test for latest c-lightning which required payment_secret
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-23 22:03:27 +09:30
Rusty Russell
76b16a60b3 drain: fix for latest lightningd which require payment_secret.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-23 22:03:27 +09:30
Rusty Russell
a6e8a10618 rebalance: fix for next release.
We now insist on payment_secret, so rebalance fails!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-23 22:03:27 +09:30
guibressan
3aa58770bd drain: README.md correction 2021-07-23 11:42:37 +02:00
Billy Garrison
c06f898316 rebalance: fix example usage in readme
The parameters were in incorrect order, causing an error when user doesn't use with `-k`
2021-07-23 10:35:19 +02:00
Wladimir J. van der Laan
43fc3c6d34 backup: Implement automatic reconnect in socket backend
Add automatic reconnect (with exponential back-off) to the socket backend.

If the connection is lost while pusing a change, try to reconnect.
Handle edge-cases that might come up depending on when the disconnect
happaned.

Currently the parameters are hardcoded: it will retry 5 times,
on the first retry it will wait 5 seconds before reconnecting.
There is an exponential backoff of 1.5, so on the fifth try it
will wait about 25 seconds.

This is particularly useful when conencting over Tor, as transient
interruptions are fairly common there.
2021-07-23 17:44:38 +09:30
Michael Schmoock
9fdc57c3a2 drain: fix a broken log statement expansion 2021-06-30 13:01:52 +02:00
Michael Schmoock
85b8b440bb drain: a comment about necessary code duplication 2021-06-29 10:43:56 +02:00
Michael Schmoock
a83ec975ba summary: remove code duplication wait_for from pyln.testing.utils 2021-06-29 10:43:56 +02:00
Michael Schmoock
4c0e3aba67 rebalance: test for additional stop msg 2021-06-29 10:42:16 +02:00
Michael Schmoock
70d0977371 rebalance: return last rebalanceall_msg even when nothing was stopped
When the last `rebalanceall` run terminated silently in the background,
it is still useful to get the ending message of that run.

This change will make the `rebalancestop` method to return the same
'nothing to stop' message plus the rebalanceall_msg when there
was a `rebalanceall` somewhere in the past.
2021-06-29 10:42:16 +02:00
Michael Schmoock
ed98e657c1 rebalance: nits 2021-06-29 10:42:16 +02:00
Michael Schmoock
e7f2dbb606 feeadjuster: use listchannels by destination dynamically 2021-06-25 16:31:22 +02:00
Michael Schmoock
1d81d70fa4 feeadjuster: logs fee_strategy on startup 2021-06-25 16:31:22 +02:00
Michael Schmoock
0062e92011 summary: fix another flake
This will make the test to wait for one node to see that the second node
disconnected after using .stop().

For that it adds wait_for(lambda) testing utils method.
2021-06-25 13:34:58 +02:00
Michael Schmoock
321e5cecf1 monitor: fix flakyness
Sometimes a channels funding allocation was not yet readable
via listpeers which is why this plugin test was flaky.

Also makes use of funding_msat instead of deprecated fields.
2021-06-25 12:51:25 +02:00
Vincenzo Palazzo
5f3bb380cd Adding Java API to the list, and another bitcoin backend
The bitcoin backend plugin is inspired by #112 #214

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-06-25 11:52:50 +02:00
Michael Schmoock
5475f256ed summary: nits 2021-06-24 14:19:55 +02:00
Michael Schmoock
2afe310a6e summary: makes test_summary_persist more precise 2021-06-24 14:19:55 +02:00
Michael Schmoock
37022fbc15 summary: logs summary.dat shelve usage 2021-06-24 14:19:55 +02:00
Michael Schmoock
b862247e2b summary: logs PeerThred activity to debug
This will eliminate a potential flakyness of the tests
because we can use that log as a marker to wait for the PeerThread.
2021-06-24 14:19:55 +02:00
Zoltán Gálli
5f0fce5820 rebalance: measure liquidity health (#257)
rebalance: measure liquidity health
2021-06-24 11:42:58 +02:00
Michael Schmoock
a2c58e647d feeadjuster: adds switchable per channel fee strategy 2021-06-23 20:00:11 +02:00
Michael Schmoock
445bca51cb feeadjuster: simplified get_chan 2021-06-23 20:00:11 +02:00
Michael Schmoock
2074eeb30d feeadjuster: use listpeers to get local fees
Using gossip is not reliable and having fees in `listpeers` is
supported in `lightningd` since 0.9.3 (Jan 21).
2021-06-23 20:00:11 +02:00
Michael Schmoock
3e56d4d4d3 feeadjuster: cleanups 2021-06-23 20:00:11 +02:00
Christian Decker
6a3a90ae08 noise: Disable flaky test 2021-06-22 19:18:13 +02:00
Christian Decker
5add7e54b2 request: Fixup requirement to fix serializer issue 2021-06-22 19:18:13 +02:00
Christian Decker
b327866631 paytest: Change amount in test to ensure at least one split 2021-06-22 19:18:13 +02:00
Christian Decker
daeded590f donations: Shut the plugin up about warnings from Flask 2021-06-22 19:18:13 +02:00
Christian Decker
e4fed81efd donations: Update the dependencies to remove warnings 2021-06-22 19:18:13 +02:00
Christian Decker
296cb34464 ci: Install master pyln-testing when testing against master c-lightning 2021-06-22 19:18:13 +02:00
Gálli Zoltán
ad53311d31 rebalance: msatfactor is not a threshold 2021-06-17 13:31:13 +02:00
Gálli Zoltán
267a464293 rebalance report: fee as ppm 2021-06-17 13:31:13 +02:00
Gálli Zoltán
924a59fc6e rebalance report 2021-06-17 13:31:13 +02:00
Michael Schmoock
8b8ad530a7 drain: nits 2021-06-17 13:00:58 +02:00
Michael Schmoock
eb7546614a drain: have retry_for before maxfeepercent 2021-06-17 13:00:58 +02:00
Michael Schmoock
43618ef155 drain: adds basic test plugin_starts 2021-06-17 13:00:58 +02:00
Michael Schmoock
f05999e208 drain: fix retry_for for multiple chunks 2021-06-17 13:00:58 +02:00
Michael Schmoock
cc485256fd drain: make more use format strings 2021-06-17 13:00:58 +02:00
Michael Schmoock
0bd761f7ef drain: fix waitsendpay timeout could have been negative 2021-06-17 13:00:58 +02:00
Michael Schmoock
b602c6ef7d rebalance: fix docstring 2021-06-17 13:00:58 +02:00
Michael Schmoock
0160bb30e0 drain: same getroute default params as rebalance
Limiting at an effective route of len 7 cuts of results
that are less than ~3% likely to succeed.
2021-06-17 13:00:58 +02:00
Michael Schmoock
593fea3de4 drain: fix exclude list and worst_channel direction 2021-06-17 13:00:58 +02:00
Michael Schmoock
775fd8a3c2 rebalance: fix testcase
We changed the return message on `rebalancestop`
in the latest commitm which the testcase did not expect.
2021-06-15 10:41:12 +02:00
Michael Schmoock
b51633889a rebalance: docstring nits 2021-06-15 10:34:45 +02:00
Michael Schmoock
fb9f4688df rebalance: retruns rebalanceall stats on rebalancestop 2021-06-15 10:34:45 +02:00