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

Dynamic trie pruning #1556

Merged
merged 89 commits into from
Jul 4, 2023
Merged

Dynamic trie pruning #1556

merged 89 commits into from
Jul 4, 2023

Conversation

Harrm
Copy link
Contributor

@Harrm Harrm commented Apr 3, 2023

Referenced issues

Description of the Change

Benefits

Possible Drawbacks

Usage Examples or Tests

Alternate Designs

@Harrm Harrm requested review from turuslan and xDimon April 5, 2023 08:32
@Harrm Harrm self-assigned this Apr 5, 2023
@Harrm Harrm requested review from xDimon and turuslan June 19, 2023 08:53
core/storage/rocksdb/rocksdb.cpp Outdated Show resolved Hide resolved
core/storage/trie/polkadot_trie/polkadot_trie.hpp Outdated Show resolved Hide resolved
core/storage/trie_pruner/impl/trie_pruner_impl.cpp Outdated Show resolved Hide resolved
core/storage/trie_pruner/impl/trie_pruner_impl.cpp Outdated Show resolved Hide resolved
core/authority_discovery/query/query_impl.cpp Outdated Show resolved Hide resolved
core/common/buffer.hpp Show resolved Hide resolved
core/application/impl/app_configuration_impl.cpp Outdated Show resolved Hide resolved
core/injector/calculate_genesis_state.hpp Outdated Show resolved Hide resolved
core/network/impl/state_sync_request_flow.cpp Outdated Show resolved Hide resolved
OUTCOME_TRY(child_merkle_val,
encoder.getMerkleValue(*child, version));
if (child_merkle_val.isHash()) {
ref_count_[*child_merkle_val.asHash()] += 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move increment to loop start (and dont increment root before loop)

core/storage/trie_pruner/impl/trie_pruner_impl.cpp Outdated Show resolved Hide resolved
node/CMakeLists.txt Show resolved Hide resolved
test/core/storage/trie_pruner/trie_pruner_test.cpp Outdated Show resolved Hide resolved
@Harrm Harrm merged commit 726eb4d into master Jul 4, 2023
@Harrm Harrm deleted the feature/dynamic-trie-pruning branch July 4, 2023 16:01
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.

4 participants