Commit Graph

114 Commits

Author SHA1 Message Date
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
Carsten Otto
3eb9fbb457 change default: do not use mission control unless configured 2022-05-13 17:41:28 +02:00
Carsten Otto
8574e9d54b introduce "fee insufficient" failure code 2022-05-09 23:51:18 +02:00
Carsten Otto
b24dc880b5 cancel in-flight if payment fails immediately 2022-05-09 23:36:03 +02:00
Carsten Otto
f136ae71f2 demote loglevel to debug 2022-05-09 19:57:47 +02:00
Carsten Otto
a679181604 make liquidity information immutable, improve caching 2022-05-08 22:47:58 +02:00
Carsten Otto
1815edddbc fix bound computation with amounts in flight 2022-05-04 22:15:59 +02:00
Carsten Otto
0438238367 add in flight at start of payment attempt 2022-05-03 20:57:48 +02:00
Carsten Otto
93da8762df remove in flight at success/failure 2022-05-03 20:43:44 +02:00
Carsten Otto
f62d67b8c4 track "in flight" amount 2022-05-03 18:56:30 +02:00
Carsten Otto
f936c65cd4 refactor to use switch statement 2022-05-03 17:28:14 +02:00
Carsten Otto
3b74f41cb6 handle failures at end of route 2022-05-02 18:18:08 +02:00
Carsten Otto
d90815469c log for unknown failures 2022-05-01 13:40:18 +02:00
Carsten Otto
34a35f9822 handle channel disabled / unknown next peer failures 2022-05-01 13:38:08 +02:00
Carsten Otto
d9342780cd make "max age" customizable 2022-04-30 17:42:22 +02:00
Carsten Otto
b693b99a0b make usage of mission control configurable 2022-04-30 17:21:13 +02:00
Carsten Otto
a0bf89db9d replace methods by enum 2022-04-25 19:32:23 +02:00
Carsten Otto
6ea1567342 make "online percentage/changes" warnings configurable 2022-04-25 19:09:51 +02:00
Carsten Otto
ae328b199e make "node flow" warning configurable 2022-04-25 18:55:01 +02:00
Carsten Otto
126398e1d4 make max_num_updates for channel warning configurable 2022-04-25 09:27:37 +02:00
Carsten Otto
22a0573f95 make lower/upper thresholds for channel warning configurable 2022-04-25 08:57:25 +02:00
Carsten Otto
514afc6b39 refactor, extend, fix and add tests 2022-04-22 19:59:28 +02:00
Carsten Otto
d68efdcbab keep information about liquidity bounds
and use it for pickhardt payments
2022-04-12 22:44:20 +02:00
Carsten Otto
1d89353744 get policy for non-local channel 2022-03-26 20:36:00 +01:00
Carsten Otto
aaf4cc9b37 rename "policies" to "policies for local channel" 2022-03-22 20:19:31 +01:00
Carsten Otto
8804a28538 add basic support for #PickhardtPayments
work in progress, see https://github.com/C-Otto/lnd-manageJ/issues/6
2022-03-20 19:12:58 +01:00
Carsten Otto
3775744343 add mission control service 2022-03-13 18:39:33 +01:00
Carsten Otto
81281ab484 add channel balance fluctuation warning 2022-02-27 15:02:24 +01:00
Carsten Otto
0b87aa1534 add channel warnings (num updates > 100k) 2022-02-26 19:47:12 +01:00
Carsten Otto
88bbaa8c22 parse num_updates for open channels 2022-02-26 17:45:41 +01:00
Carsten Otto
89915b13e0 refactor test 2022-01-16 17:21:16 +01:00
Carsten Otto
3e24bb7a9e increase minimum to 30 days for flow warning 2022-01-16 17:10:29 +01:00
Carsten Otto
04975c8314 fix: sort in controller, not service 2022-01-16 17:01:46 +01:00
Carsten Otto
a559d14280 add /api/warnings providing all known (node) warnings 2022-01-16 16:46:43 +01:00
Carsten Otto
4ce8f7d379 compute online percentage over 14 days 2022-01-16 13:24:31 +01:00
Carsten Otto
6e610c7d89 make days for online percentage/changes configurable 2022-01-16 11:45:47 +01:00
Carsten Otto
47fba1eb34 extract closed channel aware cache, use it where possible 2022-01-15 15:50:04 +01:00
Carsten Otto
859d9ff8c8 add cache 2022-01-14 14:11:02 +01:00
Carsten Otto
4e865d5c6f warn if peer has no flow for >= 14 days 2022-01-14 13:20:22 +01:00