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: emit events on slashed fp #81

Merged
merged 5 commits into from
Dec 3, 2024
Merged

feat: emit events on slashed fp #81

merged 5 commits into from
Dec 3, 2024

Conversation

gusin13
Copy link
Collaborator

@gusin13 gusin13 commented Dec 1, 2024

This pr.

  1. cleans up queues (only 2 are needed atm active/unbonding)
  2. On slashed fp babylon event, indexer will fetch all the slashed delegations and push it in the unbonding queue.
    I first thought to have separate queue for slashing and then let the api queue handler fetch all the slashed delegations and peform subtraction but this approach has some tricky race conditions and need lock on multiple tables.
    It was simpler to use the unbonding queue and let indexer push all slashed delegations in unbonding queue.

@gusin13 gusin13 marked this pull request as ready for review December 1, 2024 17:30
@gusin13 gusin13 merged commit 0ec19f9 into main Dec 3, 2024
11 checks passed
@gusin13 gusin13 deleted the gusin13/slashed-fp-events branch December 3, 2024 07:12
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