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

refactor block tree #1679

Merged
merged 10 commits into from
Oct 16, 2023
Merged

refactor block tree #1679

merged 10 commits into from
Oct 16, 2023

Conversation

turuslan
Copy link
Contributor

@turuslan turuslan commented Jun 23, 2023

Referenced issues

Description of the Change

  • std::unordered_map for unfinalized blocks (grandpa forced changes cause many unfinalized blocks).
  • reorgAndPrune for add, finalize, removeLeaf
  • simplify hasDirectChain

Benefits

Possible Drawbacks

@turuslan turuslan requested a review from xDimon June 23, 2023 13:43
@kamilsa kamilsa self-requested a review July 19, 2023 08:49
core/blockchain/impl/block_storage_impl.hpp Outdated Show resolved Hide resolved
core/blockchain/impl/block_tree_impl.cpp Outdated Show resolved Hide resolved
core/blockchain/impl/block_tree_impl.cpp Show resolved Hide resolved
@kamilsa kamilsa removed the request for review from xDimon August 7, 2023 08:59
@kamilsa kamilsa marked this pull request as draft August 7, 2023 09:00
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan force-pushed the refactor/block-tree branch from 960b425 to 07d89ee Compare October 10, 2023 16:24
@turuslan turuslan marked this pull request as ready for review October 10, 2023 16:28
@turuslan turuslan requested review from kamilsa and xDimon October 10, 2023 16:29
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>

# Conflicts:
#	core/blockchain/impl/block_tree_impl.cpp
core/blockchain/impl/cached_tree.cpp Outdated Show resolved Hide resolved
core/blockchain/impl/cached_tree.cpp Outdated Show resolved Hide resolved
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan enabled auto-merge (squash) October 16, 2023 08:21
@turuslan turuslan merged commit 72666d6 into master Oct 16, 2023
@turuslan turuslan deleted the refactor/block-tree branch October 16, 2023 09:04
@turuslan turuslan mentioned this pull request Dec 24, 2024
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