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-2178 Integrate ViewChange messages requesting to ViewChangeService #1342

Merged
merged 7 commits into from
Sep 23, 2019

Conversation

Toktar
Copy link
Contributor

@Toktar Toktar commented Sep 20, 2019

No description provided.

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
@Toktar Toktar changed the title INDY-2178: Integrate ViewChange messages requesting to ViewChangeService [WIP][INDY-2178] Integrate ViewChange messages requesting to ViewChangeService Sep 20, 2019
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Sep 23, 2019

This pull request introduces 1 alert when merging 6fa8af2 into c04bc34 - view on LGTM.com

new alerts:

  • 1 for 'super' in old style class

@Toktar Toktar changed the title [WIP][INDY-2178] Integrate ViewChange messages requesting to ViewChangeService INDY-2178 Integrate ViewChange messages requesting to ViewChangeService Sep 23, 2019
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Sep 23, 2019

This pull request introduces 1 alert when merging 4648b37 into c04bc34 - view on LGTM.com

new alerts:

  • 1 for 'super' in old style class

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Sep 23, 2019

This pull request introduces 1 alert when merging 8ca0da5 into c04bc34 - view on LGTM.com

new alerts:

  • 1 for 'super' in old style class


def _specific_validation(self, val):
if len(val) != 4:
return 'should have size of 4'

bid = BatchID(*val)
bid = BatchID(**val) if isinstance(val, dict) else BatchID(*val)
Copy link
Member

Choose a reason for hiding this comment

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

  1. I don't think we need to support both dict and tuple when serialized
  2. This can throw, for example if we receive dict with some keys not in BatchID field list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -321,15 +321,21 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if isinstance(self.checkpoint, dict):
self.checkpoint = Checkpoint(**self.checkpoint)
self.batches = [BatchID(*bid) for bid in self.batches]
if not self.batches or not isinstance(self.batches[0], dict):
Copy link
Member

Choose a reason for hiding this comment

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

Adding comment explaining this would be very nice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
@lgtm-com
Copy link

lgtm-com bot commented Sep 23, 2019

This pull request introduces 1 alert when merging c10f080 into a12eaad - view on LGTM.com

new alerts:

  • 1 for 'super' in old style class

@Toktar Toktar merged commit 31fda44 into hyperledger:master Sep 23, 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