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-1945: Implement CatchupRepGatherer #1108

Merged
merged 6 commits into from
Mar 4, 2019

Conversation

skhoroshavin
Copy link
Member

No description provided.

Sergey Khoroshavin added 6 commits March 1, 2019 17:13
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
…atchupRepGatherer

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>

class LedgerManager(HasActionQueue):
CatchupGatherer = NamedTuple('CatchupGatherer',
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to call it CatchupRepProcessor or CatchupRepService

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed

self._provider.notify_lm_catchup_start(self._ledger_id)
self._provider.notify_li_before_catchup_start(self._ledger_id)

def _gen_catchup_reqs_from_cons_proof(self, cons_proof: ConsistencyProof):
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need this method? It looks like we've already did a check for the number of eligible nodes right before calling it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm also not sure if we really need this, but I kept original logic for extra safety.

@ashcherbakov ashcherbakov merged commit 19502d8 into hyperledger:master Mar 4, 2019
@skhoroshavin skhoroshavin deleted the indy-1945-3 branch March 4, 2019 11:10
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