From aadc406d585dd64578b4609ea85d705f74fd0c93 Mon Sep 17 00:00:00 2001 From: Sergey Minaev Date: Wed, 21 Nov 2018 15:03:35 +0300 Subject: [PATCH] Clarify logging in state proof verification. Signed-off-by: Sergey Minaev --- libindy/src/services/pool/request_handler.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libindy/src/services/pool/request_handler.rs b/libindy/src/services/pool/request_handler.rs index 198d95a11a..baf4563452 100644 --- a/libindy/src/services/pool/request_handler.rs +++ b/libindy/src/services/pool/request_handler.rs @@ -695,15 +695,18 @@ fn _get_msg_result_without_state_proof(msg: &str) -> Result<(SJsonValue, SJsonVa } fn _check_state_proof(msg_result: &SJsonValue, f: usize, gen: &Generator, bls_keys: &HashMap>, raw_msg: &str) -> bool { - debug!("TransactionHandler::process_reply: Try to verify proof and signature"); + debug!("TransactionHandler::process_reply: Try to verify proof and signature >>"); - match state_proof::parse_generic_reply_for_proof_checking(&msg_result, raw_msg) { + let res = match state_proof::parse_generic_reply_for_proof_checking(&msg_result, raw_msg) { Some(parsed_sps) => { debug!("TransactionHandler::process_reply: Proof and signature are present"); state_proof::verify_parsed_sp(parsed_sps, bls_keys, f, gen) } None => false - } + }; + + debug!("TransactionHandler::process_reply: Try to verify proof and signature << {}", res); + res } #[cfg(test)]