-
Notifications
You must be signed in to change notification settings - Fork 679
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
Genesis attachments not loading? #3635
Comments
What should happen is that this data must get passed into |
Yeah, I agree that this is what should happen in the codebase, but it doesn't, and looking at the git history, it hasn't maybe ever been used: and then So, I think there's two potential options to resolve this issue:
Option 2 would have the advantage of shrinking the stacks-node binary by ~1MB as well as simplifying the codebase. An argument for doing 2 is that clearly the Atlas network has lived without applying the genesis attachments at bootup, so why should these attachments now get special treatment over other Atlas attachments? I think @lgalabru and @zone117x may also have some more insights on why this hasn't been a problem in practice, and whether or not we should try to enable the genesis attachments in the next release. |
I noticed a potential issue with Atlas attachments while working on PR #3618. In the function
spawn_chains_coordinator()
in filetestnet/stacks-node/src/run_loop/neon.rs
, there is the following code:A config for Atlas is instantiated along with the genesis attachments, but these variables are never used after this. See full context here. As far as I can tell, this code does nothing and the genesis attachments are never loaded into the database.
Either this should be modified so that the genesis attachments are not discarded, or if those attachments aren't necessary, this code should be removed because it does nothing.
The text was updated successfully, but these errors were encountered: