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

[CHIA-902] default flags for Program.run() and Program.run_with_cost() #18287

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Jul 10, 2024

Make them default to enabling all the most recent features, and to disallow unknown opcodes (i.e. strict mode). To have full control of which features are enabled, introduce a run2() function

Purpose:

Running unit tests for new puzzles still uses the old CLVM rules. The only way to enable them is to resort to calling _run(). This addresses the core issue by making run() and run_with_cost() default to the most recent feature, and be the most strict.

Current Behavior:

Program.run() has no soft-fork or hard-forks enabled.

New Behavior:

Program.run() has all soft-forks and hard-forks enabled.

@arvidn arvidn changed the title default flags for Program.run() and Program.run_with_cost() [CHIA-902] default flags for Program.run() and Program.run_with_cost() Jul 10, 2024
@arvidn arvidn added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Jul 10, 2024
@arvidn arvidn marked this pull request as ready for review July 10, 2024 15:09
@arvidn arvidn requested a review from a team as a code owner July 10, 2024 15:09
@arvidn arvidn requested a review from Rigidity July 10, 2024 15:12
…ing all the most recent features, and to disallow unknown opcodes (i.e. strict mode). To have full control of which features are enabled, introduce a run2() function
@trepca
Copy link
Contributor

trepca commented Jul 10, 2024

looks good, thanks!

@Starttoaster Starttoaster merged commit 2ff9c87 into main Jul 12, 2024
370 checks passed
@Starttoaster Starttoaster deleted the program-run branch July 12, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants