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

fix(dot/sync): wrong error message at checkOrGetDescendantHash #2971

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dot/sync/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ func (s *Service) checkOrGetDescendantHash(ancestor common.Hash,
// if descendant number is lower than ancestor number, this is an error
if header.Number > descendantNumber {
return common.Hash{},
fmt.Errorf("invalid request, descendant number %d is higher than ancestor %d",
header.Number, descendantNumber)
fmt.Errorf("invalid request, descendant number %d is lower than ancestor %d",
descendantNumber, header.Number)
}

// check if provided start hash is descendant of provided descendant hash
Expand Down