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

Fixes a bug with deleting level relations during pruning #210

Merged
merged 5 commits into from
Jun 23, 2023

Conversation

michaelsutton
Copy link
Contributor

Fixes a pruning-processor bug which can be easily reproduced with zero-cache sizes but is extremally rare if cache sizes are normal (though nonetheless can happen with some probability).

The bug is fixed by using a staging relations store for the delete operation. Required slightly refactoring the current StagingRelationsStore in order to fit all use cases

consensus/src/model/stores/relations.rs Outdated Show resolved Hide resolved
consensus/src/processes/relations.rs Outdated Show resolved Hide resolved
consensus/src/processes/relations.rs Outdated Show resolved Hide resolved
consensus/src/processes/reachability/tests/mod.rs Outdated Show resolved Hide resolved
@tiram88 tiram88 merged commit e4770c7 into kaspanet:master Jun 23, 2023
@michaelsutton michaelsutton deleted the prune-fixes branch June 23, 2023 10:44
smartgoo pushed a commit to smartgoo/rusty-kaspa that referenced this pull request Jun 18, 2024
* compile-time safety for detecting batch writer

* reproduce zero cache delete bug with a simple test

* refactor and use staging relations store for delete_level_relations algo

* comments

* remove trait duplication
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