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

fix dequeue block calculation #209

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Conversation

pk910
Copy link
Member

@pk910 pk910 commented Jan 7, 2025

This PR fixes the dequeue block calculation for consolidation & withdrawal requests, which got out of sync with large request amounts across epoch transitions:
image
(tx to request mapping is off by 2 here, the tx in row 3 should be at row 1)

Looking at the DB, the issue was introduced during epoch 13->14 transition, where the algorithm assumed 3 requests got dequeued in block 469 & 470:
image

This was due to a duplicate queue subtraction during epoch transitions.

@pk910 pk910 marked this pull request as ready for review January 7, 2025 21:26
@pk910 pk910 merged commit 2f6af44 into master Jan 8, 2025
3 checks passed
@pk910 pk910 deleted the pk910/fix-dequeue-block-calculation branch January 8, 2025 20:49
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