Commit Graph

114 Commits

Author SHA1 Message Date
Carsten Otto
b24dc880b5 cancel in-flight if payment fails immediately 2022-05-09 23:36:03 +02:00
Carsten Otto
d1567f45d8 pay payment requests via pickhardt payments 2022-05-04 20:59:34 +02:00
Carsten Otto
0438238367 add in flight at start of payment attempt 2022-05-03 20:57:48 +02:00
Carsten Otto
3b74f41cb6 handle failures at end of route 2022-05-02 18:18:08 +02:00
Carsten Otto
667a659fc1 update liquidity state for HTLCAttempt messages 2022-05-01 12:52:27 +02:00
Carsten Otto
70f329fa08 return "channel disabled" policy if policy is not known by lnd 2022-04-30 18:01:29 +02:00
Carsten Otto
5f4393b5ba use int instead of long for block height (expiry) 2022-04-27 20:35:16 +02:00
Carsten Otto
7076bdb53d add payment address to decoded payment request 2022-04-26 23:42:45 +02:00
Carsten Otto
79eab5567f move lnd settings to configuration file 2022-04-26 22:24:18 +02:00
Carsten Otto
395dbd1152 rename "hardcoded" to "configuration" 2022-04-25 08:18:19 +02:00
Carsten Otto
76e717c9c3 decode payment requests 2022-04-24 18:54:23 +02:00
Carsten Otto
e7926a81f7 revert recent policy change
a policy now (again) contains the expiry delta settings of the peer setting the policy
2022-04-24 10:40:19 +02:00
Carsten Otto
5b080874c6 compute total expiry and per hop 2022-04-23 23:10:48 +02:00
Carsten Otto
17366cfca8 add time lock delta to policy 2022-04-23 15:17:13 +02:00
Carsten Otto
207a0bdc88 add basic support for testnet nodes 2022-04-22 22:07:22 +02:00
Carsten Otto
514afc6b39 refactor, extend, fix and add tests 2022-04-22 19:59:28 +02:00
danielbroll
c396bc351d fix(hardcoded): extract hardcoded node aliases to "hardcoded" module (and make it configurable) 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
7d5fff1245 notify listeners in background 2022-04-11 00:15:21 +02:00
Carsten Otto
9fbdcfc590 ensure message is acked 2022-04-10 23:00:20 +02:00
Carsten Otto
cc91aedcfd add basic middleware support 2022-04-10 19:39:04 +02:00
Carsten Otto
afd7eef608 extract edge computation 2022-03-27 18:32:02 +02:00
Carsten Otto
276c74c15e increase cache duration for channel policies 2022-03-26 20:36:46 +01:00
Carsten Otto
1d89353744 get policy for non-local channel 2022-03-26 20:36:00 +01:00
Carsten Otto
d67a17d707 add auto-refresh for channel policies 2022-03-26 20:35:45 +01:00
Carsten Otto
60f09236c5 get other pubkey for channel 2022-03-22 20:19:31 +01:00
Carsten Otto
b6c129d9d4 add getPolicyFrom/To methods 2022-03-22 20:19:31 +01:00
Carsten Otto
3775744343 add mission control service 2022-03-13 18:39:33 +01:00
Carsten Otto
cf39bfd62b get LN graph via gRPC 2022-03-13 15:26:05 +01:00
Carsten Otto
88bbaa8c22 parse num_updates for open channels 2022-02-26 17:45:41 +01:00
Carsten Otto
0bd28d5b87 add test 2022-01-29 14:13:05 +01:00
Carsten Otto
b02b6eb151 change which methods are timed 2022-01-03 20:02:10 +01:00
Carsten Otto
6a540df944 provide closed channels as map
and remove unused method
2021-12-30 19:10:51 +01:00
Carsten Otto
462d3651da fix nanosecond bug 2021-12-30 14:36:33 +01:00
Carsten Otto
8f84689632 persist (and use) "is private" information 2021-12-18 16:58:48 +01:00
Carsten Otto
62878602b5 move method down 2021-12-18 15:22:02 +01:00
Carsten Otto
67e8bc6637 allow users to specify resolutions manually 2021-12-12 21:12:13 +01:00
Carsten Otto
4d1e8ec440 fix: only consider own sweep transactions for sweep costs 2021-12-11 20:15:34 +01:00
Carsten Otto
357d01d7d3 add resolutions (sweep transactions) to closed channels 2021-12-10 10:16:03 +01:00
Carsten Otto
fb8fd3134f add self payments endpoints 2021-12-09 12:35:01 +01:00
Carsten Otto
f966634103 ignore hops with unset channel ID 2021-12-06 20:25:52 +01:00
Carsten Otto
c08187ba93 persist routes/hops for payments 2021-12-06 20:17:37 +01:00
Carsten Otto
e8be5d58a4 cleanup 2021-12-06 20:17:37 +01:00
Carsten Otto
7964853037 persist completed payments 2021-12-05 22:34:45 +01:00
Carsten Otto
586f1194b5 make last hop channel ID optional 2021-12-04 11:08:08 +01:00
Carsten Otto
19c14c6b52 parse last hop channel ID from invoices 2021-12-04 10:52:41 +01:00
Carsten Otto
34ecd46c0d parse keysend v2 messages 2021-12-03 18:58:28 +01:00
Carsten Otto
c811d00326 parse keysend messages 2021-12-03 18:27:07 +01:00
Carsten Otto
3363e782ac subscribe to new invoices after loading all in bulk 2021-12-02 22:21:53 +01:00
Carsten Otto
ec1ac9344d persist settled invoices 2021-12-02 18:26:11 +01:00