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

Introduce stackitem serialization limits #3218

Merged
merged 4 commits into from
Nov 22, 2023
Merged

Conversation

AnnaShaleva
Copy link
Member

@AnnaShaleva AnnaShaleva commented Nov 22, 2023

Close #3197.

Draft until the following TODOs are done:

@AnnaShaleva AnnaShaleva marked this pull request as ready for review November 22, 2023 15:59
Follow the notion of neo-project/neo#2948.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Port the restrictive part of neo-project/neo#2948.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This reverts commit 822722b.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (2ae44e0) 85.32% compared to head (1d189fd) 85.36%.
Report is 10 commits behind head on master.

❗ Current head 1d189fd differs from pull request most recent head 910d53b. Consider uploading reports for the commit 910d53b to get more accurate results

Files Patch % Lines
pkg/smartcontract/manifest/manifest.go 76.92% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3218      +/-   ##
==========================================
+ Coverage   85.32%   85.36%   +0.03%     
==========================================
  Files         326      326              
  Lines       43884    43945      +61     
==========================================
+ Hits        37445    37512      +67     
+ Misses       4955     4951       -4     
+ Partials     1484     1482       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Manifest will be a part of the state.Contract which will be checked on its
way to the storage. Tiny optimisation which allows not to serialize manifest
twice. Ref. #3218 (comment).

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@roman-khimov roman-khimov merged commit 25ef2c7 into master Nov 22, 2023
11 of 16 checks passed
@roman-khimov roman-khimov deleted the serialization-limits branch November 22, 2023 18:28
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.

Check stackitem size/stack limits on serialization
2 participants