Commit Graph

174 Commits

Author SHA1 Message Date
Carsten Otto
4833d5bac3 replace DirectedChannelEdge by Edge 2024-10-31 17:10:57 +01:00
Carsten Otto
08d06ac0f9 wait for completion using allOf().joins() 2024-06-07 17:55:25 +02:00
Carsten Otto
08fec818ec include both policies for Edge and DirectedChannelEdge 2024-05-03 15:34:23 +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
5a4cc0f23b return unknown policy instead of returning error
if edge for local channel cannot be found
see https://github.com/lightningnetwork/lnd/issues/7261
2023-02-26 10:32:52 +01:00
Carsten Otto
e2fb70857a update to spring boot 3 2022-12-14 21:53:47 +01:00
Carsten Otto
5b49fe3849 update thresholds 2022-12-14 21:11:33 +01:00
Carsten Otto
cc8a143992 tweak rating computation 2022-11-10 20:36:59 +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
0c2dfeaeef remove all but first and last hop from database 2022-10-25 22:51:48 +02:00
Carsten Otto
0acc383184 move logic to model 2022-10-08 12:01:21 +02:00
Carsten Otto
0264ddbc14 improve test 2022-10-08 11:10:05 +02:00
Carsten Otto
b39a7b2d92 use ChannelIdParser, deduplicate logic 2022-09-27 22:28:45 +02:00
Carsten Otto
94b145d625 tweak tests 2022-09-27 22:28:45 +02:00
danielbroll
9fdc5a1e64 Add config options to ignore warnings:
- online_warning_ignore_node
- channel_fluctuation_warning_ignore_channel
- node_flow_warning_ignore_node
- node_rating_warning_ignore_node
- max_num_updates_warning_ignore_channel
2022-09-27 22:28:45 +02:00
Carsten Otto
3a5692a326 add corresponding test for channel warnings service 2022-09-18 13:16:47 +02:00
Carsten Otto
48980b34a0 rename test 2022-09-18 13:16:47 +02:00
Carsten Otto
405d264f99 cleanup 2022-09-18 13:16:47 +02:00
Carsten Otto
f5f32d0864 use two different warnings in test 2022-09-18 13:16:47 +02:00
Aaron Martina
a0dc9d126b Fix to checkstyle 2022-09-18 13:16:47 +02:00
Aaron Martina
a212d69ca8 Fix to issue when multiple open channels to the same node have warnings 2022-09-18 13:16:47 +02:00
Carsten Otto
adc750dcf1 include some details of rating computation 2022-09-16 16:06:22 +02:00
Carsten Otto
e708ddaaec only consider "peer online/offline" for time with open channel
fixes #64
2022-09-03 14:26:31 +02:00
Carsten Otto
c0a9627fa7 extract OverlappingChannelsService 2022-09-03 14:26:31 +02:00
Carsten Otto
e4f5232ff0 shorten test names 2022-09-03 13:05:41 +02:00
Carsten Otto
3fcd71924b use amount of received payments for rating 2022-08-28 15:55:42 +02:00
Carsten Otto
e0138c6e81 bugfix: properly exclude self-payments when computing amount received via payments 2022-08-28 15:33:54 +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
c285de77b8 fix: return sane values for channels without any average liquidity 2022-08-08 08:53:46 +02:00
Carsten Otto
2e55aae581 bugfix for "average balance" computation for closed channels 2022-07-25 16:32:15 +02:00
Carsten Otto
e8c0712e64 make use of cache 2022-07-25 16:06:00 +02:00
Carsten Otto
727f4c226c make method non-static 2022-07-25 15:52:21 +02:00
Carsten Otto
be3fe8d053 add caching to RatingService 2022-07-01 21:44:18 +02:00
Carsten Otto
91fd885416 get nodes with high incoming fee rate 2022-06-18 19:10:52 +02:00
Carsten Otto
dd275bb131 consider new channels if older (overlapping) channels exist/existed
fixes #54
2022-06-13 20:46:55 +02:00
Carsten Otto
a657743171 add rating to channel details 2022-06-13 13:34:00 +02:00
Carsten Otto
27e44647ef add "node rating" warning 2022-06-13 10:57:51 +02:00