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

feat: support for handling rollbacks #219

Merged
merged 1 commit into from
Jul 12, 2024
Merged

feat: support for handling rollbacks #219

merged 1 commit into from
Jul 12, 2024

Conversation

agaffney
Copy link
Contributor

@agaffney agaffney commented Jul 12, 2024

This works by adding additional "added" and "deleted" keys for each UTxO key to track the slot that each UTxO was added or deleted. On a rollback, the slot numbers in these keys will be compared to the rollback slot, and UTxOs will be added/removed accordingly.

Fixes #218
Fixes #215
Fixes #167

Copy link
Member

@wolf31o2 wolf31o2 left a comment

Choose a reason for hiding this comment

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

Typo

internal/indexer/indexer.go Outdated Show resolved Hide resolved
This works by adding additional "added" and "deleted" keys for each UTxO
key to track the slot that each UTxO was added or deleted. On a rollback,
the slot numbers in these keys will be compared to the rollback slot,
and UTxOs will be added/removed accordingly.

Fixes #215
Fixes #167
@agaffney agaffney merged commit 21addcb into main Jul 12, 2024
9 checks passed
@agaffney agaffney deleted the feat/rollback branch July 12, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants