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

[INDY-1116] fix IstanceChanges queue cleanup while view change completed #518

Merged
merged 2 commits into from
Feb 7, 2018

Conversation

lampkin-diet
Copy link

Signed-off-by: Andrew Nikitin [email protected]

@ghost
Copy link

ghost commented Feb 2, 2018

Could one of the committers please verify this patch?

# by msg.view_no. When view change was occured and view_no is changed,
# then we should delete all INSTANCE_CHANGE messages with current (already changed)
# view_no (which used in corresponded INSTANCE_CHANGE messages)
self.instanceChanges.pop(self.view_no, None)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can remove all instance changes with view_no <= self.view_no as we do for self._next_view_indications

andkononykhin
andkononykhin previously approved these changes Feb 5, 2018
@ashcherbakov ashcherbakov merged commit a4dfa67 into hyperledger:master Feb 7, 2018
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