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

feat(net): optimize blockid hash validation in HelloMessage #5906

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

317787106
Copy link
Contributor

@317787106 317787106 commented Jul 9, 2024

What does this PR do?

  1. Valid received hash's length of genesisBlockId, solidBlockId and headBlockId in HelloMessage; they must be in Sha256Hash.LENGTH.

  2. Use the autowired chainBaseManager in HandshakeService.

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@317787106 317787106 changed the title Vaild three BlockId's hash's length in HelloMessage more strictly feat(net): vaild BlockId's hash's length in HelloMessage strictly Jul 9, 2024
@317787106 317787106 changed the title feat(net): vaild BlockId's hash's length in HelloMessage strictly feat(net): vaild BlockId's hash length in HelloMessage strictly Jul 9, 2024
@317787106 317787106 changed the title feat(net): vaild BlockId's hash length in HelloMessage strictly feat(net): optimize blockid hash validation in HelloMessage Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants