Skip to content

Commit

Permalink
fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp committed Nov 13, 2023
1 parent a0504b6 commit 8ab36c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/server/src/api/v1/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async fn verify_checkpoint(
.await
{
Ok(checkpoint) => {
// if exact match, return Verified for both `checkpoint` and `signature`
// check log root and map root
let checkpoint_verification = if checkpoint.as_ref().checkpoint.log_root
== body.as_ref().checkpoint.log_root
&& checkpoint.as_ref().checkpoint.map_root == body.as_ref().checkpoint.map_root
Expand All @@ -82,6 +82,7 @@ async fn verify_checkpoint(
CheckpointVerificationState::Invalid
};

// check for exact match on signature and key ID
let signature_verification = if checkpoint.signature() == body.signature()
&& checkpoint.key_id() == body.key_id()
{
Expand Down

0 comments on commit 8ab36c0

Please sign in to comment.