Commit graph

14 commits

Author SHA1 Message Date
Elle Mouton
617c793ec3
multi: update LND, lndclient and btclog deps 2025-03-05 11:51:45 +02:00
Oliver Gugger
71bb06f6f7
multi: fix linter issues, run imports 2022-11-21 17:12:17 +01:00
carla
fa95a7ca6b
revenue: switchover to use existing pagination function
Previously, the revenue report used its own pagination function which
returned the wrong offset, resulting in endless querying for forward
events if we used more than one page of events. This change updates
the revenue report to use the existing lndwrap package which has the
correct values.
2020-08-31 17:19:44 +02:00
carla
ae0e901c27
multi: point to new lndclient repo 2020-06-18 16:45:59 +02:00
carla
2aec39dbe1
mutli: switchover ForwardingEvents calls to lndclient 2020-06-17 09:42:55 +02:00
carla
d4549d3a32
multi: switchover listChannels and closedChannels to lndclient 2020-06-17 09:42:55 +02:00
carla
e5254a39d6
multi: extract pagination logic into separate pagination package
We will require generic pagination in a variety of places. Extract the
existing logic in our revenue package to a generic function that can
be used for any paginated endpoint. Although the existing forwarding
events API uses uint32, we use uint64 because it is used in lnd's
invoice and payments endpoints.
2020-05-25 13:49:20 +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
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
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
2f2e42305e
revenue: add GetRevenue function 2019-12-16 11:06:35 +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