Skip to content

Add optional arguments budget and env to run_program test helper #294

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

Merged

Conversation

m-kus
Copy link
Contributor

@m-kus m-kus commented Jun 27, 2025

run_program test helper is quite useful because it allows to run programs in (almost) the same way they would be run in Elements/Liquid node. The execution behaviour should ideally be identical to BitMachine, but there is a possibility of a divergence and using this helper is a good way to catch it.

This PR adds two optional arguments to allow specifying actual budget and environment. This prevents segmentation fault for some programs.

@apoelstra
Copy link
Collaborator

CI failure looks unrelated to this PR. (We need to start pinning the compiler verison that we use for CI clippy runs.)

Copy link
Collaborator

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 7529af3; successfully ran local tests; thanks!

@apoelstra apoelstra merged commit 236ca7a into BlockstreamResearch:master Jun 27, 2025
21 of 24 checks passed
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.

2 participants