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

blockchain: change HaveBlock behavior #235

Merged

Conversation

kcalvinalvin
Copy link
Contributor

Since ProcessBlockHeader will add the block header as a blockNode to the blockIndex, the HaveBlock function will incorrectly state that the block exists when only the header exists.

Because of this, we check that the node exists and also check the node's status to see if the data is stored.

Since ProcessBlockHeader will add the block header as a blockNode to the
blockIndex, the HaveBlock function will incorrectly state that the block
exists when only the header exists.

Because of this, we check that the node exists and also check the node's
status to see if the data is stored.
@kcalvinalvin kcalvinalvin merged commit 538c3fc into utreexo:main Jan 7, 2025
2 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.

1 participant