Carsten Otto
7bfcbf7333
use PaymentInformation, provide isFailure/isSettled
2022-05-14 11:20:12 +02:00
Carsten Otto
74c6100a19
also provide failure code to SendToRouteObserver
2022-05-14 11:13:31 +02:00
Carsten Otto
5ec6a456e7
add PaymentInformation to track pending payments
2022-05-14 11:07:10 +02:00
Carsten Otto
8670519966
consider max htlc for lower/upper bounds
2022-05-13 21:19:10 +02:00
Carsten Otto
c024fc187b
track in-flight coins per payment hash
2022-05-12 23:50:54 +02:00
Carsten Otto
ae996c0e5b
also report values from stream observer
2022-05-12 22:48:26 +02:00
Carsten Otto
b24dc880b5
cancel in-flight if payment fails immediately
2022-05-09 23:36:03 +02:00
Carsten Otto
dd79bad4de
deduct on-chain fee related reserve from available balance
2022-05-09 19:56:11 +02:00
Carsten Otto
f5888fde30
reduce available local liquidity by 1% to make some room for off-chain fees
2022-05-08 23:13:49 +02:00
Carsten Otto
d1567f45d8
pay payment requests via pickhardt payments
2022-05-04 20:59:34 +02:00
Carsten Otto
168ee15e5d
reduce quantization for small amounts
2022-05-04 19:51:25 +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
9f965902a5
refactor Route
2022-04-30 15:23:24 +02:00
Carsten Otto
c811abfc87
refactor route(s) related code
2022-04-29 19:04:17 +02:00
Carsten Otto
e928c53eda
move Edge to model module
2022-04-28 19:01:47 +02:00
Carsten Otto
d633e6e984
add isFailure method
2022-04-26 23:42:45 +02:00
Carsten Otto
fa92772367
make pickhardt payment details configurable
2022-04-25 19:57:29 +02:00
Carsten Otto
acad337dc7
fix cltv delta / expiry computation
2022-04-24 11:08:48 +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
c1ae292f4a
treat local channels as free
2022-04-23 14:51:38 +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
e5949c9d5f
fix fee computation
...
- compute fees per hop
- fees for first hop are not paid
- show fees for first hop
2022-04-23 11:03: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
b871cdde82
do not use local channels that cannot be found or where peer is offline
2022-04-02 19:00:36 +02:00
Carsten Otto
aa95bc8aa1
use specialized map for edge mapping
2022-04-02 17:20:26 +02:00
Carsten Otto
ae503aff97
move computation of largest channel into cached object
2022-04-02 15:55:28 +02:00
Carsten Otto
267dd3cb1d
refactor
2022-04-02 15:50:31 +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
08c561ddc2
use fee rate weight instead of factor
2022-04-02 01:27:41 +02:00
Carsten Otto
6d07119940
fix division by zero
2022-04-01 00:31:39 +02:00
Carsten Otto
399e78a899
introduce fee rate factor
2022-04-01 00:21:49 +02:00
Carsten Otto
fdd727cce6
ignore channels with non-zero base fee
2022-03-27 19:50:02 +02:00
Carsten Otto
5c8f0a0dea
keep number of pieces for linearization constant
...
see #10
2022-03-27 19:41:25 +02:00
Carsten Otto
73a84f44c7
compute fee rate for MPP
2022-03-27 19:12:57 +02:00
Carsten Otto
f6c430769f
compute fee rate for route
2022-03-27 19:10:40 +02:00
Carsten Otto
7cd17c11d4
consider liquidity information in route probability
2022-03-27 19:00:36 +02:00
Carsten Otto
afd7eef608
extract edge computation
2022-03-27 18:32:02 +02:00
Carsten Otto
25a057a906
remove dead code
2022-03-27 15:53:46 +02:00
Carsten Otto
abd5c1bc4e
take known liquidity into account, add as 0-cost arc
...
fixes #10
2022-03-27 15:44:28 +02:00
Carsten Otto
a242977b47
compute fes for MPP/routes
2022-03-27 14:06:10 +02:00
Carsten Otto
785eeffa21
rename class
2022-03-27 00:34:23 +01:00
Carsten Otto
3145aa0b33
rename variables
2022-03-27 00:30:30 +01:00
Carsten Otto
3b3d5e8d95
use channel capacity instead of upper bound
2022-03-27 00:29:15 +01:00
Carsten Otto
777a0c0cad
rename and restructure "edge with capacity information" -> liquidity
2022-03-27 00:03:19 +01:00
Carsten Otto
261f8f5438
add channel policy to edge
2022-03-26 20:54:58 +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