Commit Graph

182 Commits

Author SHA1 Message Date
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
Carsten Otto
96d60d6bda read max htlc from policy 2022-05-13 18:31:05 +02:00
Carsten Otto
a9a233d067 add failure enum values 2022-05-13 18:02:16 +02:00
Carsten Otto
2d978b6d5f add test constants 2022-05-12 22:48:11 +02:00
Carsten Otto
8574e9d54b introduce "fee insufficient" failure code 2022-05-09 23:51:18 +02:00
Carsten Otto
2fa7a661c0 improve logging 2022-05-09 19:55:38 +02:00
Carsten Otto
a679181604 make liquidity information immutable, improve caching 2022-05-08 22:47:58 +02:00
Carsten Otto
85d0e66b15 refine test 2022-05-08 13:03:50 +02:00
Carsten Otto
721fc7e50f add tests 2022-05-08 13:03:50 +02:00
Carsten Otto
f4f1ef5697 fix another liquidity quirk 2022-05-06 21:51:51 +02:00
Carsten Otto
e40279857e fix liquidity computation: lower bound vs. in-flight 2022-05-06 21:28:57 +02:00
Carsten Otto
798f8cbfe5 fix probability computation 2022-05-05 19:46:42 +02:00
Carsten Otto
1815edddbc fix bound computation with amounts in flight 2022-05-04 22:15:59 +02:00
Carsten Otto
d1567f45d8 pay payment requests via pickhardt payments 2022-05-04 20:59:34 +02:00
Carsten Otto
57a1b5cafb sprinkle in a bit of synchronization 2022-05-03 21:28:11 +02:00