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: detect and fetch missing pox cycle signer sets #16

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

zone117x
Copy link
Member

Closes #10

@zone117x zone117x requested a review from janniks October 28, 2024 14:46
Base automatically changed from fix/dupe-msg-handling to main October 28, 2024 14:47
Copy link

github-actions bot commented Oct 28, 2024

Vercel deployment URL: https://signer-metrics-b83xj354z-hirosystems.vercel.app 🚀

@zone117x zone117x requested a review from rafaelcr October 28, 2024 14:50
}

private async fetchStackerSet(cycleNumber: number) {
while (!this.abortController.signal.aborted) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of an infinite loop that would keep a job alive indefinitely, could we use logic to re-add this cycle fetch to the back of the queue if it fails and let the PQueue handle the retry? With this infinite loop, if you have a cycle that gets stuck and you add more cycles to the queue there could be a situation where you stop processing new cycles altogether if you hit your CONCURRENCY_LIMIT

Perhaps not super urgent for now, though, could be done in another PR but I think it's something we should keep in mind

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, fixed!

Copy link
Collaborator

@rafaelcr rafaelcr left a comment

Choose a reason for hiding this comment

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

Approving, I'll defer to you for the infinite cycle thing, we can just leave a TODO/issue and solve it later

@zone117x zone117x merged commit 501cfaa into main Oct 28, 2024
2 checks passed
@zone117x zone117x deleted the feat/reward-set-updater branch October 28, 2024 15:21
blockstack-devops pushed a commit that referenced this pull request Oct 28, 2024
## [0.3.0](v0.2.2...v0.3.0) (2024-10-28)

### Features

* detect and fetch missing pox cycle signer sets ([#16](#16)) ([501cfaa](501cfaa))
@blockstack-devops
Copy link

🎉 This PR is included in version 0.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fetch reward-set from RPC if missing
3 participants