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

(BIDS-2548) add total deposits columns #2707

Merged
merged 4 commits into from
Nov 27, 2023

Conversation

Eisei24
Copy link
Collaborator

@Eisei24 Eisei24 commented Nov 15, 2023

🤖 Generated by Copilot at ba02a37

This pull request adds two new metrics to the validator statistics: the total number and amount of deposits made by each validator. These metrics are stored in the validator_stats table, exported in the CSV file, and represented in the ExporterValidatorStats struct.

@Eisei24
Copy link
Collaborator Author

Eisei24 commented Nov 22, 2023

This PR prepares everything for the reexport but BIDS-2769 has to be done first to get rid of day -1 which contains deposits.
The reexport of total stats only handles days >= 0.

Copy link
Collaborator

@LuccaBitfly LuccaBitfly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

SELECT 'down SQL query - remove total deposits count and amount columns from stats';
ALTER TABLE validator_stats DROP COLUMN IF EXISTS deposits_total;
ALTER TABLE validator_stats DROP COLUMN IF EXISTS deposits_amount_total;
-- +goose StatementEnd
Copy link
Collaborator

@LuccaBitfly LuccaBitfly Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor:
image
I think this means that file should end with newline?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have some migration files that don't end on a newline but since most of them do I added it.

@Eisei24 Eisei24 merged commit fa2455b into master Nov 27, 2023
3 checks passed
@Eisei24 Eisei24 deleted the BIDS-2548/addTotalDepositsOnlyDB branch November 27, 2023 12:30
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.

2 participants