Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove block_processor::flush function #4404

Merged

Conversation

clemahieu
Copy link
Contributor

The ::flush style functions have been disfavored as they're error and deadlock-prone. Depending on them in unit tests is problematic as their effect can change over time as components are added or removed from the node.

Removing the block_processor::flush function is done in 5 commits with increasing complexity and finally removing it from the legacy bootstrap processor as well its implementation in the final commit.

nano/core_test/active_transactions.cpp Show resolved Hide resolved
nano/core_test/active_transactions.cpp Show resolved Hide resolved
nano/core_test/confirmation_height.cpp Show resolved Hide resolved
nano/node/bootstrap/bootstrap_legacy.cpp Outdated Show resolved Hide resolved
@clemahieu clemahieu force-pushed the block_processor_flush_remove branch 4 times, most recently from f040f7c to 8ae15f3 Compare January 29, 2024 15:43
@clemahieu clemahieu merged commit 284d328 into nanocurrency:develop Jan 31, 2024
19 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants