Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi: Add CalcPaymentStats to DB and RPC server #200

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

matheusd
Copy link
Member

This adds a CalcPaymentStats call to the db, RPC server and dcrlncli. This allows querying the database for a report on the total number of payments tracked.

An upstream lnd PR (number 5635) will include a migration that goes through every payment. While the PR has been tested upstream to not be a problem even for nodes with large numbers of payments, there is no actual way to know whether a node would be a problem (due to no existing way to query the total number of payments in the DB).

This PR prepares for an upstream port of an lnd version that includes the aforementioned PR by exposing the total counts of payments, which would be migrated.

This will allow node operators to evaluate whether the payments should be cleared from the database before performing the migration.

This adds a CalcPaymentStats call to the db, RPC server and dcrlncli.
This allows querying the database for a report on the total number of
payments tracked.

An upstream lnd PR (number 5635) will include a migration that goes
through every payment. While the PR has been tested upstream to not be a
problem even for nodes with large numbers of payments, there is no
actual way to know whether a node _would_ be a problem (due to no
existing way to query the total number of payments in the DB).

This PR prepares for an upstream port of an lnd version that includes
the aforementioned PR by exposing the total counts of payments, which
would be migrated.

This will allow node operators to evaluate whether the payments should
be cleared from the database before performing the migration.
@matheusd matheusd merged commit 494aad7 into decred:master Feb 5, 2024
9 checks passed
@matheusd matheusd deleted the payments-stats branch February 5, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant