From 1707bbafaa6de30ddf19e94d5bc983ad0b3c7d5a Mon Sep 17 00:00:00 2001 From: josef Date: Tue, 8 Dec 2015 09:36:50 +0100 Subject: testing emailing --- monitor/josef_monitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'monitor/josef_monitor.py') diff --git a/monitor/josef_monitor.py b/monitor/josef_monitor.py index 2a33ef0..e6d8962 100755 --- a/monitor/josef_monitor.py +++ b/monitor/josef_monitor.py @@ -294,8 +294,9 @@ class ctlog: decoded_consistency_proof = [] for item in consistency_proof: decoded_consistency_proof.append(base64.b64decode(item)) - res = verify_consistency_proof(decoded_consistency_proof, old["tree_size"], new["tree_size"], old["sha256_root_hash"]) - + # res = verify_consistency_proof(decoded_consistency_proof, old["tree_size"], new["tree_size"], old["sha256_root_hash"]) + res = verify_consistency_proof(decoded_consistency_proof, old["tree_size"], new["tree_size"], base64.b64decode(old["sha256_root_hash"])) + if old["sha256_root_hash"] != str(base64.b64encode(res[0])): self.log(ERROR_STR + "Verification of consistency for old hash failed! Old:" \ + str(old) + " New:" + str(new) + " Proof:" + str(consistency_proof)) -- cgit v1.1