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

[SIGNER BUG] off by one slot id calculation #5195

Closed
jferrant opened this issue Sep 16, 2024 · 1 comment
Closed

[SIGNER BUG] off by one slot id calculation #5195

jferrant opened this issue Sep 16, 2024 · 1 comment

Comments

@jferrant
Copy link
Collaborator

jferrant commented Sep 16, 2024

Some signers have reported that they cannot write their MockSignatures to Stackerdb. When I looked into it, I found that they were trying to write to an off by one slot id (e.g. 22 when it should be 21). Somehow the signer slot id is off by one so there must be something wrong in the reconfiguration calls or in the parsing of signer slots.

Strangely this signer was configured correctly, however during reward cycle rollover...the newly activated reward cycle signer was off by one. When the signer was killed and restarted, it configured itself correctly.

EDIT: Slot id was wrong because the signer configured itself BEFORE the reward set was calculated, reading the old reward cycles' stackerdb. (i.e. cycle N+2 was loading cycle N's reward cycle info)

@blockstack-devops
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Status: ✅ Done
Development

No branches or pull requests

3 participants