Ensure random_2_in_2_out_rtx()
suspends on first execution
#4027
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
This CI action failed, because the
2_in_2_out_rtx
may completed after first run.And we didn't handle the else case:
ckb/script/src/verify/tests/ckb_latest/features_since_v2021.rs
Lines 851 to 853 in dbbca4e
Then
init_state
will beNone
, and panic will happen.Since the
random_2_in_2_out_rtx
will consume3276322
cycles, increaseCYCLE_BOUND
from200_000
to250_000
will make sure suspend/resume will happen in verification.What's Changed:
Related changes
CYCLE_BOUND
to250_000
Check List
Tests
Side effects
Release note