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

[Stacks 2.1] Miner error for epoch start_height and pox_2_activation config values #3407

Closed
zone117x opened this issue Nov 18, 2022 · 4 comments · Fixed by #3409
Closed

[Stacks 2.1] Miner error for epoch start_height and pox_2_activation config values #3407

zone117x opened this issue Nov 18, 2022 · 4 comments · Fixed by #3409
Labels

Comments

@zone117x
Copy link
Member

zone117x commented Nov 18, 2022

Initial context for this issue in the comments from another issue: #3261 (comment)

A regtest+krypton miner will error and fail to mine with certain epoch start_height and pox_2_activation (i.e. v1_unlock_height) config.toml values.

Once the pox_2_activation height is reached, the error Failure fetching recipient set: ChainstateError(ClarityError(Interpreter(Unchecked(NoSuchContract("ST000000000000000000002AMW42H.pox-2"))))) is logged in an indefinite loop.

Some config values do work, but approximately 3/4ths of different combinations of these config values will trigger this error.

See the full debug log output here from when this error happens.

Go to the end of the log to see where the miner loops with the error:

ERRO [1668778959.365802] [testnet/stacks-node/src/neon_node.rs:1674] [miner-block-http://0.0.0.0:20443] Relayer: Failure fetching recipient set: ChainstateError(ClarityError(Interpreter(Unchecked(NoSuchContract("ST000000000000000000002AMW42H.pox-2")))))

See here for the config.toml file used, and here for the btc-mining-script.sh script used.

I've also added pushed a docker setup so anyone can easily reproduce this locally, see hirosystems/stacks-regtest-env#16

@zone117x
Copy link
Member Author

zone117x commented Nov 18, 2022

@jcnelson let me know if there's anything else I can provide to help with this. I can easily test different config values, and/or a potential fix branch if you push any.

cc @gregorycoppola who has also tested this and may have more context

@zone117x zone117x changed the title [Stacks 2.1] Miner error for epoch start_height and pox_2_activation config values [Stacks 2.1] Miner error for epoch start_height and pox_2_activation config values Nov 18, 2022
@jcnelson
Copy link
Member

Hey @zone117x , try this PR: #3409

@diwakergupta diwakergupta linked a pull request Nov 21, 2022 that will close this issue
@jcnelson
Copy link
Member

We've added test coverage for appropriate values for start_height and pox_2_activation, and have done dress rehearsals. Going to go ahead and close this.

@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 Nov 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants