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

core: enable ssz encoding in protos #2286

Merged
merged 2 commits into from
Jun 6, 2023
Merged

core: enable ssz encoding in protos #2286

merged 2 commits into from
Jun 6, 2023

Conversation

corverroos
Copy link
Contributor

Enables SSZ encoding in protos by default. This decreases wire bandwitdh requirements.

Note this breaks compatibility with v0.15 and earlier. So v0.17 will only be compatible with v0.16.

category: feature
ticket: #2203

@codecov
Copy link

codecov bot commented Jun 6, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.05 ⚠️

Comparison is base (d4b238a) 53.81% compared to head (06f206e) 53.76%.

❗ Current head 06f206e differs from pull request most recent head f61193a. Consider uploading reports for the commit f61193a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2286      +/-   ##
==========================================
- Coverage   53.81%   53.76%   -0.05%     
==========================================
  Files         190      190              
  Lines       25628    25628              
==========================================
- Hits        13792    13780      -12     
- Misses      10150    10164      +14     
+ Partials     1686     1684       -2     
Impacted Files Coverage Δ
core/proto.go 64.86% <100.00%> (ø)

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

core/ssz_test.go Outdated
Comment on lines 205 to 208
if disabledSSZ {
sszSizes[fmt.Sprintf("%T", signedPtr)] = len(b)
} else {
jsonSizes[fmt.Sprintf("%T", signedPtr)] = len(b)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be?:

Suggested change
if disabledSSZ {
sszSizes[fmt.Sprintf("%T", signedPtr)] = len(b)
} else {
jsonSizes[fmt.Sprintf("%T", signedPtr)] = len(b)
if disabledSSZ {
jsonSizes[fmt.Sprintf("%T", signedPtr)] = len(b)
} else {
sszSizes[fmt.Sprintf("%T", signedPtr)] = len(b)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cheers thanks fixed

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jun 6, 2023
@obol-bulldozer obol-bulldozer bot merged commit f1f7318 into main Jun 6, 2023
10 checks passed
@obol-bulldozer obol-bulldozer bot deleted the corver/sszprotos branch June 6, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants