Commit graph

29 commits

Author SHA1 Message Date
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
carla
d10cf1b11d
dataset: add dataset package to calculate outliers
This commit adds a dataset package which calculates
outliers for datasets with float64 values. The
inter-quartile method of calcualting outliers is used.
2019-12-19 15:35:22 +02:00
Carla Kirk-Cohen
f74c1725e7
Merge pull request #5 from lightninglabs/revenue-calc
Pairwise Revenue Report
2019-12-16 13:42:47 +02:00
carla
2f2e42305e
revenue: add GetRevenue function 2019-12-16 11:06:35 +02:00
carla
fe6ceddb0a
utils: add GetOutPointFromString helper 2019-12-16 11:03:41 +02:00
carla
e2d31d405c
revenue: add get events to accumulate logs
This commit adds a getEvents function which accumulates
the results of a paginated forwarder log query to obtain
a full set of events. It uses a map of known channel id
mappings to convert short channel ids to outpoints.
2019-12-16 11:03:38 +02:00
carla
1a3919a87d
revenue: add Revenue Report
Add a revenue report which provides information
about pairwise volume and revenue for channels
over a set of forwarding events. Fees are split
between incoming and outgoing channels because
forwards are enabled by pairs of channels.
2019-12-16 11:00:18 +02:00
Carla Kirk-Cohen
dd448fcede
Merge pull request #3 from lightninglabs/setup-misc
Readme, travis and linter
2019-11-07 12:28:00 +02:00
carla
afadee501b terminator: Add travis config
This commit adds a travis.yml file which runs unit tests and
a linter.
2019-11-07 11:25:00 +02:00
carla
3b8195cb31 terminator: Add linter config
This commit adds configuration for golangci linter.
It contains a subset of the config set in LND.
2019-11-07 11:25:00 +02:00
carla
4244f32a5e terminator: Add README 2019-11-07 11:25:00 +02:00
Carla Kirk-Cohen
c19707d7dd
Merge pull request #2 from lightninglabs/setup-makefile
multi: Add makefile
2019-11-07 08:57:15 +02:00
Carla Kirk-Cohen
41edf19909
Merge pull request #1 from lightninglabs/setup-connecttolnd
Connect Terminator to LND
2019-11-07 08:56:49 +02:00
carla
c87d3e472c multi: Add makefile
This commit adds a Makefile with installation, testing,
flake detection and utiliites. It is a reduced version
of the Makefile used for LND.
2019-11-05 08:45:34 +02:00
carla
e91b22480f terminator: Connect to LND RPC
This commit adds code to connect to LND's RPC from the
terminator main function. It allows users to specify
config through command line flags, and validates the
input where possible.
2019-11-04 10:39:33 +02:00
carla
d67d0d284e multi: Setup main package and logger
This commit sets up the terminator's main package nested in
the cmd directory. This is done because defers created in
the top level scope of a main method are not executed if
os.Exit() is called.

A logger for a single terminator subsystem is addded and
go modules are initialized.
2019-11-04 10:38:46 +02:00
Carla Kirk-Cohen
cbec3242da
Initial commit 2019-10-25 10:20:39 +02:00