Skip to content

consensus: log rejected hashes on CV#4206

Open
AnnaShaleva wants to merge 1 commit into
masterfrom
cv
Open

consensus: log rejected hashes on CV#4206
AnnaShaleva wants to merge 1 commit into
masterfrom
cv

Conversation

@AnnaShaleva
Copy link
Copy Markdown
Member

Close #4148.

@AnnaShaleva AnnaShaleva added the blocked Can't be done because of something label Mar 27, 2026
@AnnaShaleva
Copy link
Copy Markdown
Member Author

AnnaShaleva commented Mar 27, 2026

Blocked by nspcc-dev/dbft#158, will update deps after the merge. Doesn't require consensus library changes anymore.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.48%. Comparing base (ef8950a) to head (f673769).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
pkg/consensus/consensus.go 0.00% 16 Missing ⚠️
pkg/consensus/change_view.go 0.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4206      +/-   ##
==========================================
- Coverage   83.50%   83.48%   -0.03%     
==========================================
  Files         359      359              
  Lines       43881    43899      +18     
==========================================
+ Hits        36644    36650       +6     
- Misses       5438     5441       +3     
- Partials     1799     1808       +9     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Close #4148.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@AnnaShaleva AnnaShaleva removed the blocked Can't be done because of something label Mar 27, 2026
@AnnaShaleva
Copy link
Copy Markdown
Member Author

@roman-khimov, ready for review.

func (c *changeView) DecodeBinary(r *io.BinReader) {
c.timestamp = r.ReadU64LE()
c.reason = dbft.ChangeViewReason(r.ReadB())
if c.reason == dbft.CVTxInvalid || c.reason == dbft.CVTxRejectedByPolicy {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since this is an incompatible change the PR will be blocked for some time.

@roman-khimov roman-khimov added the blocked Can't be done because of something label Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Can't be done because of something

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make CV message format compatible with C# 3.9.3+

2 participants