Skip to content

Commit

Permalink
DEBUG: push panic in
Browse files Browse the repository at this point in the history
  • Loading branch information
Turnalek committed Sep 17, 2024
1 parent bb3150b commit 50ca13f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qos_core/src/protocol/services/provision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ pub(in crate::protocol) fn provision(
let public_key_bytes = pair.public_key().to_bytes();

if public_key_bytes != manifest_envelope.manifest.namespace.quorum_key {
panic!("Size: {}\n{:?}\n\nSize: {}\n{:?}",
public_key_bytes.len(), public_key_bytes,
manifest_envelope.manifest.namespace.quorum_key.len(),
manifest_envelope.manifest.namespace.quorum_key);
// We did not construct the intended key
return Err(ProtocolError::ReconstructionErrorIncorrectPubKey);
}
Expand Down

0 comments on commit 50ca13f

Please sign in to comment.