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: update to latest stacks-node, store and forward boot receipts #18

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

zone117x
Copy link
Member

@zone117x zone117x commented Dec 6, 2022

Update to stacks-node from PR stacks-network/stacks-core#3409

The above PR introduced a "block 0" event payload, which the stacks-node now emits immediately on startup, before syncing any burnchain blocks or mining a Stacks block. The boot contracts and genesis accounts are now contained in this "block 0" payload instead of the first mined Stacks block.

The docker image produced by this repo performs an initial chain bootstrap during the docker build phase: the first 100 bitcoin blocks are mined and synced with the stacks-node, then that chainstate is saved in the docker image. To preserve this capability, special handling is required for the new "block 0" event. This is implemented with a "store and forward" mechanism: during the initial bootstrap, events are recorded and persisted in the docker image, and later when the image is ran, they are POST'd to an event-observer.

@zone117x zone117x merged commit d502f61 into main Dec 19, 2022
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.

1 participant