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: refactor code to separate out accumulator verification and modification #202

Merged

Conversation

kcalvinalvin
Copy link
Contributor

The accumulator verification and modification was being done in a single function. This meant that if the accumulator verification passed while signature validation failed, the node would be left at an inconsistent state. The change here prevents that from being possible.

Take out verification from process udata as we were performing
verification and modification in the same function. Separating these out
make it possible to keep the utreexo state in case signature
verification fails.
@kcalvinalvin kcalvinalvin merged commit 90653c0 into utreexo:main Oct 17, 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.

1 participant