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

Encapsulate election mutex #4310

Merged

Conversation

gr0vity-dev
Copy link
Contributor

This PR fixes an issue pointed out by @pwojcikdev introduced in #4306 where in notify_observers,
auto status = election->status;was called without holding the election lock.

It makes use of @simpago work of encapsulating the mutex of election class for rsnano.

- fix issue in notify_observers() where the lock was missing for `auto status = election->status;`
- make use of `set_status_type ()` returning the updated election status
@clemahieu clemahieu force-pushed the prs/encapsulate_election_mutex branch from 85bcaae to 8f1721a Compare October 19, 2023 14:42
@clemahieu clemahieu merged commit f30ec11 into nanocurrency:develop Oct 19, 2023
11 of 17 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants