Commit Graph

440 Commits

Author SHA1 Message Date
Carsten Otto
3aa67eac7d update spotbugs 2022-05-03 17:42:09 +02:00
Carsten Otto
f936c65cd4 refactor to use switch statement 2022-05-03 17:28:14 +02:00
Carsten Otto
6f57035f2f update nullaway plugin 2022-05-03 17:28:14 +02:00
Carsten Otto
4bc0f55779 update error-prone 2022-05-03 17:23:07 +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
c60ce304e2 disable cache 2022-05-01 13:23:39 +02:00
Carsten Otto
01342f268d add warning 2022-05-01 13:23:39 +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
d9342780cd make "max age" customizable 2022-04-30 17:42:22 +02:00
Carsten Otto
d9836779e5 allow custom "maxAge" for liquidity bounds information 2022-04-30 17:31:04 +02:00
Carsten Otto
b693b99a0b make usage of mission control configurable 2022-04-30 17:21:13 +02:00
Carsten Otto
97c4524fa3 use less confusing variable name 2022-04-30 16:33:55 +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
ee527fea6b update pmd and cpd 2022-04-30 13:57:47 +02:00
Carsten Otto
a45af0090c update pitest 2022-04-30 13:57:47 +02:00
Carsten Otto
c811abfc87 refactor route(s) related code 2022-04-29 19:04:17 +02:00
Carsten Otto
e8dd1fb355 update guava 2022-04-28 22:35:34 +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
d633e6e984 add isFailure method 2022-04-26 23:42:45 +02:00
Carsten Otto
7076bdb53d add payment address to decoded payment request 2022-04-26 23:42:45 +02:00
Carsten Otto
56d310714b remove unused settings 2022-04-26 22:39:31 +02:00
Carsten Otto
79eab5567f move lnd settings to configuration file 2022-04-26 22:24:18 +02:00
Carsten Otto
fa92772367 make pickhardt payment details configurable 2022-04-25 19:57:29 +02:00
Carsten Otto
01aaad605f document configuration file
fixes #5
2022-04-25 19:34:43 +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
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
acad337dc7 fix cltv delta / expiry computation 2022-04-24 11:08:48 +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
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
3ee45fdd38 remove stray space 2022-04-23 10:26:41 +02:00
Carsten Otto
207a0bdc88 add basic support for testnet nodes 2022-04-22 22:07:22 +02:00
Carsten Otto
27015f3ae3 remove (outdated) .java-version 2022-04-22 20:01:08 +02:00
Carsten Otto
514afc6b39 refactor, extend, fix and add tests 2022-04-22 19:59:28 +02:00
Carsten Otto
76e00f556b document file location 2022-04-22 19:59:28 +02:00