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-1461: add the test for different prepare certificates in view change #815

Merged

Conversation

Toktar
Copy link
Contributor

@Toktar Toktar commented Jul 16, 2018

Check that a node without pre-prepare but with quorum of prepares wouldn't use this transaction as a last in prepare certificate

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
quorum)


def test_view_change_with_different_prepare_certificate(looper, txnPoolNodeSet,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't we just create a simple unit test that just adds a quorum of Prepares from other nodes, but doesn't add PrePrepare?
See test_lst_sertificate_return_max_3PC_key_of_quorumed_prepare as an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because we want to check that the prepare does not get in replica.prepares without preprepare. It will be more useful with an integration tests.

@ashcherbakov ashcherbakov merged commit fba3d49 into hyperledger:master Jul 17, 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.

None yet

2 participants