Commit graph

16 commits

Author SHA1 Message Date
Elle Mouton
617c793ec3
multi: update LND, lndclient and btclog deps 2025-03-05 11:51:45 +02:00
carla
df836c2d21
multi: faraday rename 2020-03-30 09:25:46 +02:00
carla
36dfb58c37
multi: rename terminator main package to governator 2020-03-05 17:07:21 +02:00
carla
24cdd6bed4
recommend: add volume based recommendations 2020-03-04 09:45:56 +02:00
carla
b9c1e62ae3
recommend: add revenue based recommendations
This commit adds revenue based close recommendations which use the
fees a channel has generated, scaled by the number of confirmations
it has to compare channels. We do not have opening timestamps for
channels at present, so we cannot compare channels over a time range
(because we do not know whether the channel was open or not).

A metric enum is used to identify the datapoint that we wish to use.
In this commit, the rpc server is set to default to uptime calculations
so that the rpc/cli changes can be made in a separate commit.
2020-02-25 10:57:08 -03:00
carla
eca6b62c90
mutli: split uptime and threshold recommendations into separate calls
This commit separates uptime based and threshold based recommendations
into two separate calls. This decreases the matrix of possible values
that users have to specify as we introduce more datasets that close
decisions can be made based
2020-02-25 10:53:19 -03:00
carla
106ba36d0f
recommend: make outliers and threshold more configurable
This change passes in lower outlier and below threshold values to allow
for more flexible recommendations; future metrics used may want to
recommend channels with upper values for close (eg recommend high peer
flap rate).
2020-02-25 10:53:17 -03:00
carla
08d09a6da6
recommend: use channel insights in recommendations
Channel insights calcualte the values required for recommendations,
pass insights in rather than raw rpc channels so that we do not need
to calcualte values (uptime, revenue etc) in the recommend package and
can focus on producing recommendations.
2020-02-25 10:06:21 -03:00
carla
6e45b725a2
mutli: update line wrap to 80
Earlier commits in this repo were made with 4 spaces in a tab instead
of 8. This commit updates relevant files to wrap at 80 chars with this
line spacing.
2020-02-11 22:37:26 +02:00
carla
473dcc0ccc
recommend: logging fix 2020-01-31 13:20:19 +02:00
carla
b1edd06153
recommend: add threshold close strategy 2020-01-31 13:07:48 +02:00
carla
5d5f407800
dataset: return false map when outliers cannot be calcualted
Internally catch error that is thrown when we have too few
values to calcualte outliers and simply return an all false
map rather than exposing the error to calling functions. If
there are too few values to calculate outliers, then no values
are outliers so a false map is appropriate.
2020-01-31 13:07:28 +02:00
carla
b10d1b97d9
recommend: surface values and false recommendations
This commit adds a Recommendation stuct which provides the value that
a close recommendation was based on and the close recommendation
boolean. It also adds channels with false recommendations to the
report (rather than only containing the channels recommended for close).

The value is added to provide users more
information about how the recommendation
was reached, and providing the false
recommendations provides better insight
into which channels were and were eligible
for a close recommendation but did not
meet the close criteria.
2020-01-31 13:06:51 +02:00
carla
d4c7b7d156
mutli: allow user specified outlier mutliplier
This commit updates outlier close recommendation logic to allow user
specified outlier multipliers. This change is made to allow more
flexibility when the grpc server is introduced.
2020-01-31 13:05:36 +02:00
carla
9f9e6a47b3
recommend: add package to produce close recommendations
This commit adds a recommend package which produces
close recomemndations base on peer uptime outliers.
2019-12-19 15:45:38 +02:00
carla
9c664f2421
recommend: add log for subsystem 2019-12-19 15:40:23 +02:00