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
Carsten Otto
0438238367
add in flight at start of payment attempt
2022-05-03 20:57:48 +02:00
Carsten Otto
f62d67b8c4
track "in flight" amount
2022-05-03 18:56:30 +02:00
Carsten Otto
296240b52c
reuse Coins.NONE object instance
2022-05-03 18:41:08 +02:00
Carsten Otto
3b74f41cb6
handle failures at end of route
2022-05-02 18:18:08 +02:00
Carsten Otto
34a35f9822
handle channel disabled / unknown next peer failures
2022-05-01 13:38:08 +02:00
Carsten Otto
d9836779e5
allow custom "maxAge" for liquidity bounds information
2022-04-30 17:31:04 +02:00
Carsten Otto
9279d43b44
avoid crash with conflicting liquidity information
2022-04-30 15:49:53 +02:00
Carsten Otto
0a84e83158
move models
2022-04-30 15:38:32 +02:00
Carsten Otto
e928c53eda
move Edge to model module
2022-04-28 19:01:47 +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
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
a050d3a7b4
Revert "treat local channels as free"
...
The modified policy is used to compute the fee for the
first hop (even though it is not paid). As such, it must
not be modified.
This reverts commit ed69174c10 .
2022-04-23 12:55:11 +02:00
Carsten Otto
ed69174c10
treat local channels as free
2022-04-23 12:46:51 +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
cc91aedcfd
add basic middleware support
2022-04-10 19:39:04 +02:00
Carsten Otto
dd4d2074ea
remove expensive regular expression matching for pubkeys
2022-04-02 17:58:20 +02:00
Carsten Otto
812f7062ae
compute hashcode once
2022-04-02 17:07:09 +02:00
Carsten Otto
1f889bf648
compare pubkeys via byte[] data
2022-04-02 16:35:22 +02:00
Carsten Otto
4ac6c796b0
normalize unit cost for large channel
...
with this the effect of the fee rate weight does
not depend on the size of the largest channel
2022-04-02 02:01:26 +02:00
Carsten Otto
fdd727cce6
ignore channels with non-zero base fee
2022-03-27 19:50:02 +02:00
Carsten Otto
73e9ce20f2
add convenience method
2022-03-27 00:10:43 +01:00
Carsten Otto
261f8f5438
add channel policy to edge
2022-03-26 20:54:58 +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
f5f3c34707
add minimum function for Coins
2022-03-20 00:12:05 +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
b3df494383
add fourth pubkey to fixtures
2022-03-13 15:20:33 +01:00
Carsten Otto
ba9719e2aa
change wording of warning
2022-02-28 14:19:08 +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
8a55785cea
return num updates as part of channel information
2022-02-26 17:59:20 +01:00
Carsten Otto
88bbaa8c22
parse num_updates for open channels
2022-02-26 17:45:41 +01:00