Skip to content

Improved inactive_vote_cache#3907

Merged
pwojcikdev merged 8 commits intonanocurrency:developfrom
pwojcikdev:prs/extract-vote-cache
Aug 29, 2022
Merged

Improved inactive_vote_cache#3907
pwojcikdev merged 8 commits intonanocurrency:developfrom
pwojcikdev:prs/extract-vote-cache

Conversation

@pwojcikdev
Copy link
Copy Markdown
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 force-pushed the prs/extract-vote-cache branch from c54c8c6 to 28eccf7 Compare August 24, 2022 21:42
@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
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants