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 burnchain advancement feature #81

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Conversation

BowTiedRadone
Copy link
Collaborator

This PR introduces a seed-based method for advancing the burnchain in both invariant and property testing. Logs now display the current Stacks and Bitcoin block heights.

Sample Output:

# type=test

₿      1 Ӿ      6   wallet_4 [PASS] reverse test-reverse-string 
₿      1 Ӿ      7   wallet_7 [PASS] reverse test-reverse [1764733795]
₿      2 Ӿ      9   wallet_7 [PASS] reverse test-reverse-string toLoc
₿      2 Ӿ     10   wallet_3 [PASS] reverse test-reverse-string 7H0/t
₿      3 Ӿ     12   wallet_5 [PASS] reverse test-reverse-string -
# type=invariant

₿     48 Ӿ     95   deployer [PASS] counter invariant-counter-gt-zero 
₿     48 Ӿ     97   wallet_5        counter decrement 
₿     48 Ӿ     97   wallet_5 [PASS] counter invariant-counter-gt-zero 
₿     57 Ӿ    108   wallet_5        counter increment 
₿     57 Ӿ    108   wallet_8 [PASS] counter invariant-counter-gt-zero 
₿     57 Ӿ    110   deployer        counter add 2147483639
₿     57 Ӿ    110   wallet_4 [PASS] counter invariant-counter-gt-zero 
₿     57 Ӿ    112   wallet_2        counter increment 
₿     57 Ӿ    112   wallet_7 [PASS] counter invariant-counter-gt-zero 
₿     62 Ӿ    119   wallet_3        counter add 6
₿     62 Ӿ    119   wallet_7 [PASS] counter invariant-counter-gt-zero

Resolves #76.

This commit adds a burnchain advancement method to the invariant testing type
and updates logging to highlight the current Stacks and Bitcoin heights.
This commit adds a burnchain advancement method to the property testing type
and updates logging to highlight the current Stacks and Bitcoin heights.
@BowTiedRadone BowTiedRadone requested a review from a team as a code owner January 6, 2025 15:49
@BowTiedRadone BowTiedRadone force-pushed the feat/advance-burnchain branch from e134192 to 67fe46c Compare January 7, 2025 08:28
invariant.ts Show resolved Hide resolved
invariant.ts Outdated Show resolved Hide resolved
invariant.ts Outdated Show resolved Hide resolved
invariant.ts Outdated Show resolved Hide resolved
invariant.ts Outdated Show resolved Hide resolved
invariant.ts Outdated Show resolved Hide resolved
property.ts Outdated Show resolved Hide resolved
property.ts Outdated Show resolved Hide resolved
Copy link
Member

@moodmosaic moodmosaic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@moodmosaic moodmosaic merged commit d758231 into master Jan 7, 2025
16 checks passed
@moodmosaic moodmosaic deleted the feat/advance-burnchain branch January 7, 2025 12:36
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.

Enable Mining of Empty Bitcoin Blocks Between Calls
2 participants