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/consensus: fix wire compatibility #1556

Merged
merged 2 commits into from
Dec 14, 2022
Merged

Conversation

corverroos
Copy link
Contributor

Reverts "reserved" fields since they are required to calculate correct hash when verifying signatures. Instead just stop using fields.

category: bug
ticket: #1555

@@ -13,14 +13,28 @@ message QBFTMsg {
core.corepb.v1.Duty duty = 2;
int64 peer_idx = 3;
int64 round = 4;
reserved 5; // Deprecated value
core.corepb.v1.UnsignedDataSet value_legacy = 5 [deprecated = true]; // Prefer value.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these fields need to be here, since they are included when calculating signature hashes. Removing them results in server and client calculating different hashes.

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Dec 14, 2022
@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Base: 54.43% // Head: 54.39% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (beefb85) compared to base (22e9130).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1556      +/-   ##
==========================================
- Coverage   54.43%   54.39%   -0.04%     
==========================================
  Files         153      153              
  Lines       19421    19421              
==========================================
- Hits        10572    10565       -7     
- Misses       7427     7432       +5     
- Partials     1422     1424       +2     
Impacted Files Coverage Δ
app/app.go 63.86% <0.00%> (-2.74%) ⬇️
core/scheduler/scheduler.go 72.04% <0.00%> (-0.49%) ⬇️
app/vmock.go 77.72% <0.00%> (+5.18%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@obol-bulldozer obol-bulldozer bot merged commit ecd0112 into main Dec 14, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/revertwire branch December 14, 2022 12:07
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.

2 participants