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

chore: include calculated and proposed data root in log message #2826

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

cmwaters
Copy link
Contributor

@cmwaters cmwaters commented Nov 8, 2023

No description provided.

@celestia-bot celestia-bot requested a review from a team November 8, 2023 13:30
@codecov-commenter
Copy link

Codecov Report

Merging #2826 (2512d8d) into main (7e9fb84) will increase coverage by 0.15%.
Report is 1 commits behind head on main.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2826      +/-   ##
==========================================
+ Coverage   19.44%   19.59%   +0.15%     
==========================================
  Files         143      143              
  Lines       17320    17320              
==========================================
+ Hits         3368     3394      +26     
+ Misses      13633    13607      -26     
  Partials      319      319              
Files Coverage Δ
app/process_proposal.go 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

Comment on lines 161 to +162
if !bytes.Equal(dah.Hash(), req.Header.DataHash) {
logInvalidPropBlock(app.Logger(), req.Header, "proposed data root differs from calculated data root")
logInvalidPropBlock(app.Logger(), req.Header, fmt.Sprintf("proposed data root %X differs from calculated data root %X", req.Header.DataHash, dah.Hash()))
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

%X	base 16, with upper-case letters for A-F

Ref: https://pkg.go.dev/fmt

@cmwaters cmwaters added the backport:v1.x PR will be backported automatically to the v1.x branch upon merging label Nov 8, 2023
@cmwaters cmwaters merged commit fb8492c into main Nov 8, 2023
30 checks passed
@cmwaters cmwaters deleted the cal/data-mismatch-log branch November 8, 2023 15:05
mergify bot pushed a commit that referenced this pull request Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:v1.x PR will be backported automatically to the v1.x branch upon merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants