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

Add advance_stacks_tip and advance_burnchain_tip in simnet #1495

Closed
hugocaillard opened this issue Jul 2, 2024 · 0 comments · Fixed by #1506
Closed

Add advance_stacks_tip and advance_burnchain_tip in simnet #1495

hugocaillard opened this issue Jul 2, 2024 · 0 comments · Fixed by #1506
Assignees
Labels
good first issue Good for newcomers

Comments

@hugocaillard
Copy link
Collaborator

hugocaillard commented Jul 2, 2024

In simnet, the chaintip in simnet with advance_chain_tip. And the equivalent in the JS SDK: mineEmpyBlocks(n: number)

It advances:

  • the data store height
  • the burn data store height
  • the tenure height

In epoch 3.0, we want a more granular control over the chain height

  • advance_stacks_chaintip
    • only increases the stacks height
  • advance_burn_chaintip
    • increases bitcoin, tenure, and stacks height
    • replaces the existing advance_chain_tip method/command to make it more explicit

It will allow to have precise control of the simulated chain height and handle real world scenarios in unit tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants