Commit Graph

196 Commits

Author SHA1 Message Date
Carsten Otto
4833d5bac3 replace DirectedChannelEdge by Edge 2024-10-31 17:10:57 +01:00
Carsten Otto
bfbd482821 remove unnecessary "suppress warnings" 2024-06-07 11:45:20 +02:00
Carsten Otto
646c63271c regularly persist fee rate information, local and remote 2024-06-02 18:06:05 +02:00
Carsten Otto
9bc6399f52 include negative inbound fees in fee computation
this doesn't influence path finding, just the actual payments
2024-05-03 16:37:53 +02:00
Carsten Otto
08fec818ec include both policies for Edge and DirectedChannelEdge 2024-05-03 15:34:23 +02:00
Carsten Otto
04aeaac651 show inbound fees in channel policy 2024-05-03 10:28:42 +02:00
Carsten Otto
3cece1612f minor fixes, preparation for PMD 7 2024-04-11 12:46:40 +02:00
Carsten Otto
1049eed1d2 remove "num_updates" channel warning
this should not be an issue anymore starting with lnd 0.15.1 (released in August 2022)

fixes #92
2024-02-14 18:07:06 +01:00
Carsten Otto
b244a9b288 return minimum value for "min_htlc_msat" for channel
this is negotiated with the peer and defines the lower bound
for the values one may set for the local channel policy
2024-01-13 17:59:27 +01:00
Carsten Otto
5e61301e15 export "min_htlc" as part of channel details 2023-09-10 14:47:50 +02:00
Carsten Otto
260ffd9aba add convenience method 2023-08-03 16:35:23 +02:00
danielbroll
6d386a4b8a Add pending channels page 2023-07-04 19:43:19 +02:00
Carsten Otto
1cc0e67b86 fix variable names 2023-06-03 12:36:40 +02:00
Carsten Otto
9cb5243b7d allow test to pass on Windows machines with low time resolution
see #80
2023-01-01 13:03:05 +01:00
Carsten Otto
7b75581051 update pitest 2022-11-11 14:29:53 +01:00
Carsten Otto
cc8a143992 tweak rating computation 2022-11-10 20:36:59 +01:00
Carsten Otto
65047387ea consider local balance for all channels when computing rating for peer
that way an idle channel with lots of local liquidity contributes to a lower peer rating
2022-11-09 17:31:39 +01:00
Carsten Otto
d54b186c87 include information about average local balance in channel rating model 2022-11-09 16:50:31 +01:00
Carsten Otto
70eacfe9b9 include local balance in rating description 2022-11-09 16:33:24 +01:00
Carsten Otto
61eab63d17 include observed duration in rating description for average local balance 2022-11-09 16:23:03 +01:00
Carsten Otto
d5d88291d1 when computing average local balance also return duration 2022-11-09 16:16:49 +01:00
Carsten Otto
217af122e2 split rating into channel/peer specific instances 2022-11-09 15:20:19 +01:00
Carsten Otto
5faf68d467 refactor record to class 2022-11-09 14:04:21 +01:00
Carsten Otto
ad8f1da6da rename add to combine 2022-11-09 14:04:21 +01:00
Carsten Otto
2062a3b9dd tweak Rating model and service
* extract logic into RatingForChannelService
* add information about days and average liquidity
2022-11-09 09:46:42 +01:00
Carsten Otto
e939df93d6 migrate from groovy to kotlin 2022-11-08 11:20:53 +01:00
Carsten Otto
84d8b2bf5c update errorprone 2022-11-01 10:51:03 +01:00
Carsten Otto
0c2dfeaeef remove all but first and last hop from database 2022-10-25 22:51:48 +02:00
Carsten Otto
f696c0f633 fix: allow channel IDs 2^63 <= x < 2^64
fixes #18
2022-10-11 22:55:53 +02:00
Carsten Otto
0acc383184 move logic to model 2022-10-08 12:01:21 +02:00
Carsten Otto
a1ffe15ceb introduce ChannelIdParser 2022-09-27 22:28:45 +02:00
Carsten Otto
adc750dcf1 include some details of rating computation 2022-09-16 16:06:22 +02:00
Carsten Otto
42205e18c3 include amount of received payments in FlowReport
self-payments are not included
2022-08-27 18:40:59 +02:00
Carsten Otto
25e5af1831 parse hops for settled invoices 2022-08-27 16:44:27 +02:00
Carsten Otto
91fd885416 get nodes with high incoming fee rate 2022-06-18 19:10:52 +02:00
Carsten Otto
a657743171 add rating to channel details 2022-06-13 13:34:00 +02:00
Carsten Otto
b05ab08f4c return empty rating as -1, include message in output for node details 2022-06-13 12:59:21 +02:00
Carsten Otto
27e44647ef add "node rating" warning 2022-06-13 10:57:51 +02:00
Carsten Otto
d977d7c9d1 include rating in node details 2022-06-13 10:01:48 +02:00
Carsten Otto
fd3ec7353f add basic support for ratings 2022-06-03 10:58:52 +02:00
Carsten Otto
4796c6f592 fix: MPP self-payments
fixes #47
2022-05-30 22:23:33 +02:00
Carsten Otto
865e68a7d1 invalidate channel cache on in-flight change
this way the local balance returned is (more) accurate

fixes #42
2022-05-24 22:06:07 +02:00
Carsten Otto
7a784f90bc add toString 2022-05-22 23:32:58 +02:00
Carsten Otto
14d446bf9e add support for regtest network 2022-05-17 14:51:55 +02:00
Carsten Otto
da809d5dec do not fail on "old" channel ID 2022-05-17 08:46:50 +02:00
Carsten Otto
6adf408a3b parse and use route hints from invoices 2022-05-16 20:40:00 +02:00
Carsten Otto
215e0bc23b add MPP sender with payment loop 2022-05-15 17:58:03 +02:00
Carsten Otto
c00be96daa add shortcut for code 0 (no failure) that does not log 2022-05-14 10:59:57 +02:00
Carsten Otto
a13602e3d2 extend failure code handling 2022-05-14 00:07:22 +02:00
Carsten Otto
4f082d6f4a tweak upper bound wrt. in-flight amounts again, add clarifying comments 2022-05-13 22:47:45 +02:00