Skip to content

Commit

Permalink
PM-3562: Another sanity check in construct.
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Jul 29, 2021
1 parent 55ffda8 commit d48e4d5
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -45,6 +45,8 @@ object CheckpointCertificate {
commitQC: QuorumCertificate[CheckpointingAgreement, Phase.Commit]
): Option[CheckpointCertificate] = {
assert(block.hash == headers.head.hash)
assert(commitQC.blockHash == headers.last.hash)

constructProof(block).map { case (proof, cp) =>
CheckpointCertificate(headers, cp, proof, commitQC)
}
Expand Down

0 comments on commit d48e4d5

Please sign in to comment.