Commit Graph

255 Commits

Author SHA1 Message Date
Christian Decker
7ea33d2497 travis: Bump bitcoind to v0.20.1 2020-08-28 23:06:30 +02:00
Christian Decker
c908a29d08 travis: Reorder configurations to run DEVELOPER=1 first
The others are slower, and I like having quick feedback.
2020-08-28 23:06:30 +02:00
Christian Decker
9512a9cdd7 travis: Use stripped bitcoind tarball and parametrize version 2020-08-28 23:06:30 +02:00
Christian Decker
12fdd14b7a pytest: Get coverage inside and outside plugins working 2020-08-28 23:06:30 +02:00
Christian Decker
f43414d77b travis: Increase testing parallelism 2020-08-28 23:06:30 +02:00
Christian Decker
b9a8622422 backup: Remove temporary node_factory shim
This was required in order to avoid cleaning the datadir on creation.
2020-08-28 23:06:30 +02:00
Christian Decker
3b0d7a0dec travis: Make sure we always use the master pyln modules
We want to catch upcoming incompatibilities early, even if a plugin lists an
old version.
2020-08-28 23:06:30 +02:00
Christian Decker
aaa49b34f7 travis: Annotate envvars when uploading coverage report 2020-08-28 23:06:30 +02:00
Christian Decker
fd0e492e2f travis: Force coverage files to be written in the working dir 2020-08-28 23:06:30 +02:00
Christian Decker
cfc6a8b33e travis: Add some coverage cleanup and management 2020-08-28 23:06:30 +02:00
Christian Decker
e33ff5e062 sauron: Add retry HTTP adapter to retry requests up to 10 times 2020-08-28 15:50:21 +02:00
fiatjaf
8703798a37 add trustedcoin, sparko and webhook to the main list. 2020-08-28 15:49:00 +02:00
Antoine Poinsot
cb2fc61fe2 sauron: fix pip requirements..
Fixes https://github.com/lightningd/plugins/issues/126

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-08-28 15:44:59 +02:00
Michael Schmoock
158a15110f summary: fix persistent peerstate zero leading window 2020-08-03 11:37:10 +02:00
Michael Schmoock
f4e3383ed6 summary: persist peerstate via shelve 2020-08-02 19:07:40 +02:00
Michael Schmoock
acf670b782 summary: adds Channel named tuple 2020-08-01 17:03:41 +02:00
Michael Schmoock
42c3041a4c fix: missing link in README 2020-08-01 17:03:41 +02:00
Michael Schmoock
75700ddc57 summary: remove legacy code 2020-08-01 17:03:41 +02:00
Michael Schmoock
294dc5dc20 summary: increase test coverage 2020-08-01 17:03:41 +02:00
Michael Schmoock
5a6489c3ae summary: moves availability code and adds testcases
extracts the availability calculations to own testable module
2020-08-01 17:03:41 +02:00
Michael Schmoock
01b075117f summary: set thread loglevel to just warn
using level error caused the testframework to fail on non-essential
price or availability thread log messages.

likely caused by the test runner not being able to query the bitstamp
API.
2020-08-01 17:03:41 +02:00
Michael Schmoock
14ad827fb8 summary: adds 72hr availability measurement
this applies a 72hr exponential smoothed sliding window to
the online/offline availability state of a peer.
2020-08-01 17:03:41 +02:00
Michael Schmoock
e484db385a summary: fix broken price API and other bugs
1. bitcoinaverage does not supply public prices since a while now:
>  Unauthenticated requests are not allowed. Take out a new plan or start
>   a free trial at https://pro.bitcoinaverage.com"
This commit fixes this by porting to bitstamp public ticker API.

2. This commit fixes the missing thread loop, so the price is
   actually updated after a while.

3. This commit fixes an unchecked attribute access that crashed during
   my tests.
2020-08-01 17:03:41 +02:00
Christian Decker
ded4f6b380 Update README.md 2020-07-03 11:42:19 +02:00
Antoine Poinsot
bd1459ab4e sauron: add Tor proxy support
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-11 15:36:40 +02:00
svewa
04662336fa don't fund channels with more than 16777215sat, don't require confs on UTXOs to fund a channel 2020-06-11 13:17:34 +02:00
Michael Schmoock
6de448358a drain: refine tests 2020-06-11 13:16:01 +02:00
Michael Schmoock
0b685b45ea drain: fix a negative msat amount edgecase 2020-06-11 13:16:01 +02:00
Michael Schmoock
395577ec66 drain: utils - adds get_theirs helper 2020-06-11 13:16:01 +02:00
Michael Schmoock
4cb12a41cd rebalance: reduce some log output to debug 2020-06-11 13:16:01 +02:00
Michael Schmoock
30463bf169 drain: reduce some log output to debug 2020-06-11 13:16:01 +02:00
Michael Schmoock
bfc160b3c6 fix: typo on RpcError 2020-06-11 13:16:01 +02:00
Michael Schmoock
247ac99711 fix: make receivable_msat really optional for backwards compat 2020-06-11 13:16:01 +02:00
Sven
c37e0a4108 G.node -> G.nodes 2020-06-06 17:59:22 +02:00
Antoine Poinsot
2d2fa72ce6 prometheus: give short channel id for scid fiels, not long one
Also, if the channel isn't confirmed yet (no short_channel_id field),
    give the long channel id.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-05 17:54:28 +02:00
Antoine Poinsot
a155107857 jitrebalance: don't set result twice when we can't have a reverse chan
This also moves all logs to get_circular_route, as we have two ways of
returning None.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
4fb91a6f45 jitrebalance: test failure cases
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
afebc21401 jitrebalance: if target scid errors, game is over
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
c5c24cb74a jitrebalance: assert l2 jit-rebalanced in test_simple_rebalance
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
e239fcdcc1 jitrebalance: test_issue_88 needs DEVELOPER too
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
815c382855 jitrebalance: use waitsendpay to wait for htlc resolution
This is a rebalance we initiated, so it's our payment

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
e11fe21dcb jitrebalance: add a configurable timeout to stop trying to rebalance
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
7d900c952b jitrebalance: log on success, don't log the onion
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
61c97e11ef jitrebalance: try as much routes as possible; don't stop at 5
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-02 11:59:12 +02:00
Antoine Poinsot
bee26113c0 jitrebalance: don't assume that 'listchannels' results contains 2 entries
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-05-27 14:51:28 +02:00
Antoine Poinsot
386d4eaa6d jitrebalance: handle the absence of the 'erring_channel' field
On failed 'sendpay'.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-05-27 14:51:28 +02:00
Antoine Poinsot
18632df38c jitrebalance: add the direction of erring channel on failed sendpay
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-05-27 14:51:28 +02:00
Christian Decker
d34cb6e637 jitrebalance: Do not attempt to access scid on unconfirmed channels
Fixes #88
2020-05-27 12:34:57 +02:00
Christian Decker
9ebc175542 jitrebalance: Fix error when computing negative msat amounts 2020-05-27 12:34:57 +02:00
Christian Decker
18d03962df jitrebalance: Add a test to reproduce issue #88
I'm expecting it to be because we access the short_channel_id
indiscriminately, which is unsafe if the channel is not confirmed yet, i.e.,
it doesn't have a scid yet.
2020-05-27 12:34:57 +02:00