summaryrefslogtreecommitdiff
path: root/monitor/josef_monitor.py
diff options
context:
space:
mode:
authorjosef <josef.gson@gmail.com>2015-12-08 09:36:50 +0100
committerjosef <josef.gson@gmail.com>2015-12-08 09:36:50 +0100
commit1707bbafaa6de30ddf19e94d5bc983ad0b3c7d5a (patch)
tree74899d1923dae04907750ad8a3e30fd1cf5fd5fb /monitor/josef_monitor.py
parent1afee9c20c13ff5f317334d6649e84f4240d1926 (diff)
testing emailing
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))