Chore: Remove code that was need only during consensus update#6371
Merged
jannotti merged 3 commits intoalgorand:masterfrom Jun 24, 2025
Merged
Chore: Remove code that was need only during consensus update#6371jannotti merged 3 commits intoalgorand:masterfrom
jannotti merged 3 commits intoalgorand:masterfrom
Conversation
f31cb7f to
3412f0c
Compare
algorandskiy
previously approved these changes
Jun 18, 2025
Contributor
algorandskiy
left a comment
There was a problem hiding this comment.
Since it is post consensus and less restrictive we allowed to remove these extra checks.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6371 +/- ##
==========================================
- Coverage 50.59% 50.46% -0.13%
==========================================
Files 653 653
Lines 110395 110376 -19
==========================================
- Hits 55859 55706 -153
- Misses 51661 51813 +152
+ Partials 2875 2857 -18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jannotti
commented
Jun 20, 2025
gmalouf
reviewed
Jun 23, 2025
gmalouf
reviewed
Jun 23, 2025
gmalouf
reviewed
Jun 23, 2025
gmalouf
approved these changes
Jun 23, 2025
Contributor
gmalouf
left a comment
There was a problem hiding this comment.
I think makes sense, asked a question or two along the way.
algorandskiy
approved these changes
Jun 23, 2025
This was referenced Jul 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR removes some code that was needed during a consensus update, but since it is more lenient for transaction processing, the version checking is no longer needed. It was only necessary to have during that consensus release so that we wouldn't have new nodes that were lenient, and old nodes that were not, at the same time.
We now unconditionally put an app's ID into
r.createdAppsas soon as the app is created (before it begins execution). We had limited ourselves to only doing so after the sharedResources consensus change went into effect, to avoid becoming more lenient at release time instead of vote time. Since we do it unconditionally, we can remove some code that considersr.createdAppsand then the current app explicitly.We keep a special case in
r.allows()that short-circuited resource access checks for pre-sharing programs. That short-circuit existed in order to allow apps to use their own appID and address when making an inner call curing creation, even thoughallows()would stop them because their appID was not yet increatedApps. Now their appID is inr.createdApps, soallowswill let them through. Unfortunately, the simulate code is not able to handle the calls toAllowsHoldingandAllowsLocalsthat removing the short-circuit would cause, becausesimulatehas previously only handled cross-product post resourceSharing.Test Plan