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

historical votes #2085

Merged
merged 9 commits into from
May 31, 2024
Merged

historical votes #2085

merged 9 commits into from
May 31, 2024

Conversation

turuslan
Copy link
Contributor

Referenced issues

Description of the Change

  • historical_votes_works test
  • save historical votes for all sets/rounds
  • replace cached votes (grandpa cache votes db #1961) with historical votes

Possible Drawbacks

Signed-off-by: turuslan <[email protected]>
@turuslan turuslan requested review from xDimon and kamilsa May 10, 2024 12:10
Signed-off-by: turuslan <[email protected]>
core/consensus/grandpa/impl/voting_round_impl.cpp Outdated Show resolved Hide resolved
core/consensus/grandpa/historical_votes.hpp Outdated Show resolved Hide resolved
core/consensus/grandpa/historical_votes.hpp Outdated Show resolved Hide resolved
@turuslan turuslan requested a review from xDimon May 14, 2024 14:51
@turuslan turuslan requested a review from kamilsa May 28, 2024 11:09
Comment on lines +1476 to +1479
SL_ERROR(logger_,
"historicalVotes(set={}, round={}): decode error",
set,
round);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
SL_ERROR(logger_,
"historicalVotes(set={}, round={}): decode error",
set,
round);
SL_ERROR(logger_,
"Decode historicalVotes(set={}, round={}) failed: {}",
set,
round,
r2.error());

core/consensus/grandpa/impl/grandpa_impl.hpp Show resolved Hide resolved
@turuslan turuslan merged commit 649ea5e into master May 31, 2024
11 of 13 checks passed
@turuslan turuslan deleted the feature/historical-votes branch May 31, 2024 04:47
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