Commit Graph

157 Commits

Author SHA1 Message Date
Carsten Otto
0c0df439eb remove probability from route output 2025-02-16 13:51:24 +01:00
Carsten Otto
6a84e71532 update platform and gradle 2025-02-16 13:45:35 +01:00
Carsten Otto
162f81c1b0 work around duplication 2024-10-31 17:37:26 +01:00
Carsten Otto
5cfe9d67d4 fix: take max htlc policy into account 2024-10-31 17:37:26 +01:00
Carsten Otto
4833d5bac3 replace DirectedChannelEdge by Edge 2024-10-31 17:10:57 +01:00
Carsten Otto
051c7bf12c fix: when paying, also consider "expensive" hops from own node
if "ignore fees from own channels" is not set, local channels
should be considered no matter the fee rate
2024-05-04 18:56:00 +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
099270c622 treat timeout as failure
fixes #88
2024-02-15 22:24:40 +01:00
Carsten Otto
c7c8401629 fix threshold 2024-02-13 21:21:15 +01:00
Carsten Otto
31304819a0 call onComplete only after last message has been requested and sent
fixes #87
2024-01-15 11:36:04 +01:00
Carsten Otto
8ce7f0fcc9 synchronize subscription 2024-01-15 11:35:16 +01:00
Carsten Otto
fe1ee22f42 wait for 100th attempt to succeed 2024-01-15 09:47:30 +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
2a8b782481 top-up: ignore peer for last hop as first hop 2023-08-29 21:51:19 +02:00
Carsten Otto
e09fe3f1db add first hop filter to top-up
fixes #86
2023-08-14 22:45:06 +02:00
Carsten Otto
0b25ba9bcc make use of "forTopUp" method 2023-08-14 10:51:52 +02:00
Carsten Otto
9ed56d2daa PaymentStatus: wait for demand before sending messages 2023-08-14 09:54:19 +02:00
Carsten Otto
ed2b40a657 migrate PaymentStatus to Flux 2023-08-03 16:21:28 +02:00
Carsten Otto
93f3bd3a3c make mono/flux available in all projects 2023-08-03 16:14:51 +02:00
Carsten Otto
92b912f324 migrate payments controller to WebFlux
fixes #38
2023-08-03 12:17:17 +02:00
Carsten Otto
75deed10b1 fix tests 2023-06-22 19:46:11 +02:00
Carsten Otto
b068479672 only send via channels with at least 4223sat on the remote side 2023-05-09 07:50:00 +02:00
Carsten Otto
5b49fe3849 update thresholds 2022-12-14 21:11:33 +01:00
Carsten Otto
32326c1ec5 reduce liquidity to avoid rounding/fee issues
for each edge, remove one quantization unit from
the assumed/known liquidity information
2022-12-06 10:37:25 +01:00
Carsten Otto
c9998201e0 force payment failure to avoid stuck payments 2022-11-21 10:58:48 +01:00
Carsten Otto
bb0ae0b300 ignore channels with low remote balance as first hop 2022-11-18 09:17:43 +01:00
Carsten Otto
0363ea380a ignore edges with CLTV delta that is too high for payment
fixes #77
2022-11-17 17:25:09 +01:00
Carsten Otto
0ee8f795f7 log and fail if route exceeds max-cltv-expiry
fixes #76
2022-11-16 18:13:12 +01:00
Carsten Otto
e939df93d6 migrate from groovy to kotlin 2022-11-08 11:20:53 +01:00
Carsten Otto
80d54261d4 remove dead code 2022-11-01 11:47:52 +01:00
Carsten Otto
3293514ae7 use named instead of findByName 2022-11-01 11:16:36 +01:00
Carsten Otto
d0b28015f0 use tasks.register 2022-11-01 11:15:23 +01:00
Carsten Otto
c8d624fc68 move version definitions to external platform 2022-11-01 10:13:04 +01:00
Carsten Otto
a1f088240b update pmd and cpd 2022-10-02 23:34:37 +02:00
Carsten Otto
8bd649a783 update error message 2022-08-27 10:04:25 +02:00
Carsten Otto
2b4fb44aaa fail edge computation without connected middleware
fixes #36
2022-06-06 16:39:53 +02:00
Carsten Otto
adf3795d47 ignore inactive local channels for route computation 2022-06-06 15:46:35 +02:00
Carsten Otto
b6e36b8691 query for open channels only 2022-06-06 15:32:28 +02:00
Carsten Otto
bad6a4472d make sure limit is at least 0 2022-05-29 11:16:29 +02:00
Carsten Otto
c63b828621 adapt fee rate for non-last hops based on configured fee rate
fixes #46
2022-05-29 11:08:19 +02:00
Carsten Otto
51d0338e5e use payment options for top-up 2022-05-27 23:09:36 +02:00
Carsten Otto
36133159ef pass payment options via POST 2022-05-27 22:41:31 +02:00
Carsten Otto
fc36b89b58 fail after 100 loop iterations 2022-05-26 16:35:57 +02:00
Carsten Otto
c3e46931fa fix "off-by one" in output
failure != retry
2022-05-26 15:18:58 +02:00
Carsten Otto
36643649ef lower threshold for pitest 2022-05-26 15:07:00 +02:00
Carsten Otto
a166c07f8d add test 2022-05-26 15:07:00 +02:00
Carsten Otto
d5c3f39569 top-up: cancel invoice after failure
fixes #40
2022-05-26 14:58:54 +02:00
Carsten Otto
78c8a4581b add info message 2022-05-26 13:15:25 +02:00