Skip to content

Commit

Permalink
validator set dbg print
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad committed Sep 23, 2024
1 parent 5db1342 commit 04d626a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cosmwasm/enclaves/shared/block-verifier/src/verify/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ pub fn validate_block_header(
height: u64,
commit: Commit,
) -> Result<SignedHeader, sgx_status_t> {
println!(
"my validator set h={}, validators={}",
height,
validator_set.validators().len()
);

let header = <Header as Protobuf<RawHeader>>::decode(block_header_slice).map_err(|e| {
error!("Error parsing header from proto: {:?}", e);
sgx_status_t::SGX_ERROR_INVALID_PARAMETER
Expand Down

0 comments on commit 04d626a

Please sign in to comment.