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 Sync Response Handling and Context Usage in doGetBlocksByHashesRequest #4713

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

GheisMohammadi
Copy link
Contributor

Issue

This pull request addresses two minor issues in the synchronization process:

  • Added a check to ensure that the response is not nil before using its value.

  • Updated the doGetBlocksByHashesRequest function to correctly utilize the ctx parameter. Previously, the context was not being used, which could lead to improper request handling and potential resource leaks.

@ONECasey ONECasey merged commit 6e772e2 into dev Jul 15, 2024
4 checks passed
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.

3 participants