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

Various fixes for RemoveInvalidVotes() #2845

Merged
merged 3 commits into from
Apr 8, 2019

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Apr 7, 2019

No description provided.

Caused by lock not being held while accessing lastMNListForVotingKeys when RemoveInvalidVotes() is called from DoMaintenance() and UpdatedBlockTip() at the same time.
MN list only changes on new blocks and we already call RemoveInvalidVotes() from UpdatedBlockTip()
@UdjinM6 UdjinM6 added this to the 14.0 milestone Apr 7, 2019
Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

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

utACK 👍

First commit catches a crash I observed a few days ago and for which I thought the immer upgrade was necessary 👍

Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 merged commit 1ba8694 into dashpay:develop Apr 8, 2019
@UdjinM6 UdjinM6 deleted the fixRemoveInvalidVotes branch November 26, 2020 13:26
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.

None yet

2 participants