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

fix(ghost): voting xepoch & polish #3890

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix(ghost): voting xepoch & polish #3890

wants to merge 1 commit into from

Conversation

lidatong
Copy link
Member

@lidatong lidatong commented Jan 8, 2025

No description provided.


void
fd_ghost_replay_vote( fd_ghost_t * ghost, fd_voter_t * voter, ulong slot ) {
replay_vote( ghost, &voter->key, voter->stake, voter->replay_vote, voter->stake, slot );
voter->replay_vote = slot; /* update the cached replay vote slot on voter */
Copy link
Contributor

@emwang-jumptrading emwang-jumptrading Jan 9, 2025

Choose a reason for hiding this comment

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

It seems like now voter->replay_vote will update to slot even when the if( ( slot <= last_slot ) ) return; condition is hit and we aren't actually updating to this slot.

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch

@lidatong lidatong changed the title feat(ghost): xepoch voting and polish fix(ghost): voting xepoch & polish Jan 12, 2025
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.

2 participants