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

AVM: Version downgrade check ported to master #4093

Merged
merged 6 commits into from
Jun 8, 2022

Conversation

gmalouf
Copy link
Contributor

@gmalouf gmalouf commented Jun 8, 2022

Summary

Applied JJ's fix for inner app downgrade version checking along with minor comment tweaks.

@gmalouf gmalouf requested a review from jannotti June 8, 2022 04:02
@@ -726,9 +726,9 @@ func ProgramVersion(bytecode []byte) (version uint64, length int, err error) {
// matching versions between approval and clearstate.
const syncProgramsVersion = 6

// CheckContractVersions ensures that for v6 and higher two programs are version
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jannotti see if this wording works or feel free to adjust inline on the branch.

@gmalouf gmalouf added the Bug-Fix label Jun 8, 2022
@gmalouf gmalouf changed the title Version downgrade check ported AVM: Version downgrade check ported to master Jun 8, 2022
@codecov
Copy link

codecov bot commented Jun 8, 2022

Codecov Report

Merging #4093 (cca37c8) into master (5838f72) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4093      +/-   ##
==========================================
- Coverage   54.46%   54.46%   -0.01%     
==========================================
  Files         391      391              
  Lines       48668    48668              
==========================================
- Hits        26508    26505       -3     
- Misses      19934    19937       +3     
  Partials     2226     2226              
Impacted Files Coverage Δ
data/transactions/transaction.go 35.80% <ø> (ø)
config/consensus.go 85.71% <100.00%> (ø)
network/wsPeer.go 65.47% <0.00%> (-2.20%) ⬇️
data/abi/abi_type.go 87.67% <0.00%> (-0.95%) ⬇️
data/transactions/verify/txn.go 45.02% <0.00%> (+0.86%) ⬆️
ledger/blockqueue.go 85.05% <0.00%> (+2.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5838f72...cca37c8. Read the comment docs.

jannotti
jannotti previously approved these changes Jun 8, 2022
@gmalouf gmalouf requested a review from jannotti June 8, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants