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

[WIP] INDY-1340: Checkpointer cleanups #1317

Merged
merged 4 commits into from
Sep 6, 2019

Conversation

skhoroshavin
Copy link
Member

No description provided.

Sergey Khoroshavin added 2 commits August 30, 2019 14:02
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@@ -288,6 +302,30 @@ def _checkpoint_key(checkpoint: Checkpoint) -> CheckpointKey:
digest=checkpoint.digest
)

@staticmethod
def _audit_seq_no_from_3pc_key(audit_ledger: Ledger, view_no: int, pp_seq_no: int) -> int:
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 rename it to _get_committed_audit_seq_no_from_3pc_key

seq_no -= 1
return seq_no

def _audit_txn_root_hash(self, view_no: int, pp_seq_no: int) -> Optional[str]:
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 rename it to _committed_audit_txn_root_hash

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@skhoroshavin skhoroshavin changed the title [WIP] INDY-2177: Checkpointer cleanups [WIP] INDY-1340: Checkpointer cleanups Aug 30, 2019
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
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