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-2324] Add random initial view no for sim pool #1455

Merged
merged 22 commits into from
Jan 23, 2020

Conversation

lampkin-diet
Copy link

No description provided.

Andrew Nikitin added 2 commits January 14, 2020 16:52
…m pool

Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
Andrew Nikitin and others added 8 commits January 15, 2020 13:32
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
…m tests

Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
…y-2324

Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
@lampkin-diet lampkin-diet changed the title [INDY-2324] Add random initial view no for sim pool [WIP][INDY-2324] Add random initial view no for sim pool Jan 21, 2020
ashcherbakov and others added 5 commits January 21, 2020 13:46
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
…y-2324

Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
@@ -104,6 +113,12 @@ def __init__(self, name: str, validators: List[str], primary_name: str,
# ToDo: ugly way to understand node_reg changing
self._previous_node_reg = self._write_manager.node_reg_handler.committed_node_reg

def setup_view_no(self, view_no=None):
self._data.view_no = view_no
self._data.primaries = self._primaries_selector.select_primaries(view_no)
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have primaries field in ConsensusSharedData anymore

def test_view_change_while_ordering_with_real_msgs_default_seed(seed):
do_test(seed)
def test_view_change_while_ordering_with_real_msgs_random_seed(random):
do_test(random)


Copy link
Contributor

Choose a reason for hiding this comment

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

Why did we remove fixed seed here? I think we need to keep for regression test purposes.

Copy link
Author

Choose a reason for hiding this comment

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

I removed only simple seed from 0 to 100.

Copy link
Author

Choose a reason for hiding this comment

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

I returned back fixed seed.

Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Jan 22, 2020

This pull request introduces 1 alert when merging c4b8408 into ea38ac1 - view on LGTM.com

new alerts:

  • 1 for Unused import

Andrew Nikitin added 2 commits January 22, 2020 17:36
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Jan 22, 2020

This pull request introduces 1 alert when merging a08287d into ea38ac1 - view on LGTM.com

new alerts:

  • 1 for Unused import

Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Jan 22, 2020

This pull request introduces 1 alert when merging fbd6de1 into ea38ac1 - view on LGTM.com

new alerts:

  • 1 for Unused import

Andrew Nikitin added 2 commits January 23, 2020 13:03
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Jan 23, 2020

This pull request introduces 1 alert when merging e50ae8e into bdc8d05 - view on LGTM.com

new alerts:

  • 1 for Unused import

Signed-off-by: Andrew Nikitin <andrew.nikitin@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Jan 23, 2020

This pull request introduces 1 alert when merging f59b184 into bdc8d05 - view on LGTM.com

new alerts:

  • 1 for Unused import

@ashcherbakov ashcherbakov changed the title [WIP][INDY-2324] Add random initial view no for sim pool [INDY-2324] Add random initial view no for sim pool Jan 23, 2020
@lampkin-diet lampkin-diet merged commit c6d4b64 into hyperledger:master Jan 23, 2020
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