Commit graph

66 commits

Author SHA1 Message Date
Oliver Gugger
e7e00bbf9a
gvncli+governator: add version 2020-03-19 10:47:41 +01:00
Carla Kirk-Cohen
59ea852749
Merge pull request #12 from lightninglabs/misc-releaseprep
multi: update documentation
2020-03-10 12:47:30 +02:00
carla
47235fbb19
readme: add rpc and cli information 2020-03-10 11:09:28 +02:00
carla
bb9a36d80d
gvncli: fix display of total volume per confirmation 2020-03-10 11:02:39 +02:00
carla
5c28058d4a
config: update default port to 8465
Update default port to 8465 which has no commonly used TCP application
to avoid collisions.
2020-03-10 11:02:35 +02:00
carla
2d7d0e8d10
readme: update license and remove status
Update license to point to correct repository. Remove status from
readme because it is not available for private repos. Update year in
license.
2020-03-10 11:02:03 +02:00
Carla Kirk-Cohen
32eb8b3425
Merge pull request #11 from lightninglabs/rename-governator
mutli: Rename terminator to governator
2020-03-05 17:23:23 +02:00
carla
bcaa7910f6
multi: rename trmcli to gvncli 2020-03-05 17:07:39 +02:00
carla
fcf64d6d93
multi: rename trmrpc to gvnrpc 2020-03-05 17:07:35 +02:00
carla
36dfb58c37
multi: rename terminator main package to governator 2020-03-05 17:07:21 +02:00
Carla Kirk-Cohen
f9d7d86315
Merge pull request #9 from lightninglabs/recs-revenuebased
trmrpc: Add revenue and volume based close recommendations
2020-03-04 05:01:22 -03:00
carla
5d409db9d2
trmrpc+trmcli: add volume based recommendations 2020-03-04 09:56:33 +02:00
carla
170ffdf1a4
trmcli: display incoming, outgoing and total volume per confirmation 2020-03-04 09:50:43 +02:00
carla
24cdd6bed4
recommend: add volume based recommendations 2020-03-04 09:45:56 +02:00
carla
d6fbefaf0f
trmrpc+trmcli: add revenue based recommendations 2020-02-25 11:01:55 -03: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 Kirk-Cohen
1cc704c2bf
Merge pull request #8 from lightninglabs/rpc-revenuereport
trmrpc: Add insights and revenue endpoints
2020-02-20 09:45:05 +02:00
carla
c17dd3ae88
trmcil: add insights endpoint 2020-02-19 12:30:58 +02:00
carla
fdce1018d5
trmrpc: add channel insights endpoint 2020-02-19 12:30:54 +02:00
carla
b70cd0aa3f
insights: add channel insights package 2020-02-19 12:30:50 +02:00
carla
98848af064
trmcli: add revenue report cli command 2020-02-19 12:30:45 +02:00
carla
60f6f377ff
trmrpc: add revenue report endpoint 2020-02-19 12:30:24 +02:00
carla
d90b902f23
revenue: remove time parameters from get revenue
The only place where we need start and end time for revenue reports
is the forwarding history query, which is passed in anyway. Remove
these params and rather just pass in a forwarding history query which
will limit to start/end time.
2020-02-11 22:42:17 +02:00
Carla Kirk-Cohen
049ece69dd
Merge pull request #10 from lightninglabs/misc-logandbuildfixups
multi: Silence unknown channel ID error
2020-02-11 22:38:45 +02: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
acde3549a8
dataset: add more logging 2020-02-11 18:06:16 +02:00
carla
86e0795fc2
revenue: log channels that we cannot lookup shortChanID for
This change logs short channel ids that we cannot find in our set
of open, pending and closed channels. This provides a better UX than
blindly failing the whole revenue report because we cannot find a single
channel.
2020-02-11 18:06:16 +02:00
carla
7631a74f67
revenue: add logger 2020-02-11 16:47:21 +02:00
carla
5138fa1912
Makefile: add trmcli to make install 2020-02-11 16:25:29 +02:00
carla
20e5b21024
trmcli: use snake case instead of camel case for printRespJSON 2020-02-11 16:24:29 +02:00
Carla Kirk-Cohen
76cb7cdade
Merge pull request #7 from lightninglabs/rpc-addserver
trmrpc: Add rpcserver and cli tool
2020-01-31 13:30:05 +02:00
carla
473dcc0ccc
recommend: logging fix 2020-01-31 13:20:19 +02:00
carla
a13d473950
trmcli: add cli and command for close recommendations 2020-01-31 13:20:11 +02:00
carla
a3cdc4bdb6
multi: add terminator grpc server 2020-01-31 13:20:09 +02:00
carla
bb78dedc1b
trmrpc+makefile: add genprotos and makefile command 2020-01-31 13:17:41 +02:00
carla
47866abfcf
trmrpc: add terminator service proto 2020-01-31 13:09:06 +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
7398753e3c
dataset: add logger 2020-01-31 13:07:21 +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
bc779d8c79
dataset: add get threshold function to dataset 2020-01-31 13:05:52 +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 Kirk-Cohen
c5ff04485f
Merge pull request #4 from lightninglabs/recs-uptimecomparison
Uptime Based Close Recommendations
2020-01-07 16:33:14 +02:00
carla
466f46fbab
terminator: make debug level configurable 2019-12-19 15:45:38 +02:00
carla
b4614f9550
terminator: query for recommendations on startup 2019-12-19 15:45:38 +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