Commit Graph

152 Commits

Author SHA1 Message Date
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
Carsten Otto
d977d7c9d1 include rating in node details 2022-06-13 10:01:48 +02:00
Carsten Otto
47d36d80b4 scale rating by average local liquidity
fixes #51
2022-06-09 16:55:48 +02:00
Carsten Otto
15d9beff34 scale rating by days
fixes #52
2022-06-09 16:14:19 +02:00
Carsten Otto
12c5ae003c remove bonus point for ratings 2022-06-09 15:47:53 +02:00
Carsten Otto
e068b8867a allow configuration of durations used for ratings 2022-06-03 16:46:40 +02:00
Carsten Otto
d820e43595 tweak factor for rebalanced amounts 2022-06-03 13:21:09 +02:00
Carsten Otto
c5a4685e9e take local balance into account for rating 2022-06-03 11:46:50 +02:00
Carsten Otto
fd3ec7353f add basic support for ratings 2022-06-03 10:58:52 +02:00
Carsten Otto
3b4ac5d340 fix syntax 2022-06-03 10:57:59 +02:00
Carsten Otto
a77874124d use channel ID to compute open height 2022-06-03 09:45:17 +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
5a1ced06a6 add getMinimumFeeRateFrom/To 2022-05-22 14:43:50 +02:00
Carsten Otto
911e217aef add graph service and "number of known channels" endpoint 2022-05-17 16:56:51 +02:00
Carsten Otto
3af59b96bf ignore duplicate channels from route hints 2022-05-17 08:39:10 +02:00
Carsten Otto
6adf408a3b parse and use route hints from invoices 2022-05-16 20:40:00 +02:00
Carsten Otto
a13602e3d2 extend failure code handling 2022-05-14 00:07:22 +02:00
Carsten Otto
e6b1c53c68 keep very unattractive liquidity information for unusable channels
instead of forgetting everything, including the information about how "bad" the channel is
2022-05-13 23:00:17 +02:00
Carsten Otto
4f082d6f4a tweak upper bound wrt. in-flight amounts again, add clarifying comments 2022-05-13 22:47:45 +02:00
Carsten Otto
8670519966 consider max htlc for lower/upper bounds 2022-05-13 21:19:10 +02:00
Carsten Otto
c402d3df21 lower default max age liquidity information: 10 minutes instead of 1 hour 2022-05-13 17:51:35 +02:00
Carsten Otto
430e868141 remove liquidity information on "fee insufficient" failure
It's likely that we don't request a new graph (with the updated fee requirement) before
computing the next MPP. To avoid running into the same issue again, we just ignore
the channel. This information will time out, so that the channel can be tried again.
2022-05-13 17:49:57 +02:00