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

Improved inactive_vote_cache #3907

Merged
merged 8 commits into from
Aug 29, 2022

Conversation

pwojcikdev
Copy link
Contributor

This PR extracts and improves inactive_vote_cache which is responsible for storing votes that do not correspond to any currently active election. It contains logic for sorting block hashes according to the amount of tally from stored votes which will enable prioritization of hinted elections in the future.

When running tests there might be some errors, but I already addressed them in separate PRs:
#3905
#3906

@pwojcikdev pwojcikdev marked this pull request as ready for review August 25, 2022 18:03

mutable nano::mutex mutex;

friend std::unique_ptr<nano::container_info_component> collect_container_info (active_transactions &, std::string const &);
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be removed

dsiganos
dsiganos previously approved these changes Aug 26, 2022
@pwojcikdev pwojcikdev merged commit 3f8cd4a into nanocurrency:develop Aug 29, 2022
@pwojcikdev pwojcikdev deleted the prs/extract-vote-cache branch August 29, 2022 08:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants