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

1847 - add logging to Rollbacks #1877

Merged
merged 2 commits into from
Oct 29, 2024
Merged

1847 - add logging to Rollbacks #1877

merged 2 commits into from
Oct 29, 2024

Conversation

Cmdv
Copy link
Contributor

@Cmdv Cmdv commented Oct 10, 2024

Description

This fixes #1597 #1847

Adding some login to rollbacks for a clearer picture of what is happening.
Also refactored code and moved functionality to cardano-db/ library.

SCR-20241022-gfn

Checklist

  • Commit sequence broadly makes sense
  • Commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the changelog
  • Code is formatted with fourmolu on version 0.10.1.0 (which can be run with scripts/fourmolize.sh)
  • Self-reviewed the diff

Migrations

  • The pr causes a breaking change of type a,b or c
  • If there is a breaking change, the pr includes a database migration and/or a fix process for old values, so that upgrade is possible
  • Resyncing and running the migrations provided will result in the same database semantically

If there is a breaking change, especially a big one, please add a justification here. Please elaborate
more what the migration achieves, what it cannot achieve or why a migration is not possible.

@Cmdv Cmdv force-pushed the 1847-Rollbacks-in-conway branch from 62a18e2 to f761f3c Compare October 10, 2024 13:53
@Cmdv Cmdv force-pushed the 1847-Rollbacks-in-conway branch from a8816cd to 8cab25a Compare October 22, 2024 10:53
@Cmdv Cmdv marked this pull request as ready for review October 22, 2024 10:55
@Cmdv Cmdv requested a review from a team as a code owner October 22, 2024 10:55
@Cmdv Cmdv force-pushed the 1847-Rollbacks-in-conway branch 2 times, most recently from 0f546d1 to dac9abe Compare October 22, 2024 13:48
sgillespie
sgillespie previously approved these changes Oct 23, 2024
Copy link
Contributor

@sgillespie sgillespie left a comment

Choose a reason for hiding this comment

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

LGTM

@sgillespie
Copy link
Contributor

The rollback summary looks great!

@Cmdv Cmdv merged commit 03ca8f1 into master Oct 29, 2024
16 of 18 checks passed
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.

Using cardano-db-sync --rollback-to-slot after consumed-tx-out is bugged
3 participants