summaryrefslogtreecommitdiff
path: root/monitor/josef_monitor.py
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/josef_monitor.py')
-rwxr-xr-xmonitor/josef_monitor.py5
1 files changed, 3 insertions, 2 deletions
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))