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-1340: request missing old view PrePrepares when applying NewView #1329

Merged

Conversation

ashcherbakov
Copy link
Contributor

Signed-off-by: ashcherbakov alexander.sherbakov@dsr-corporation.com

Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
if result != PROCESS:
return result, reason

for pp_dict in msg.preprepares:

Choose a reason for hiding this comment

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

Should we check the order of received preprepares? It's can help with reducing "missing Pre-Prepare" requests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we use lists (not dicts) in OldViewPrePrepareRequest and OldViewPrePrepareReply, the order of PPs will be preserved.
Please have a look at test_send_reply_on_old_view_pre_prepares_request and test_process_preprepare_on_old_view_pre_prepares_reply where we make sure that result is in expected order

Choose a reason for hiding this comment

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

ok

Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
@ashcherbakov ashcherbakov merged commit 87edc54 into hyperledger:master Sep 11, 2019
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