summaryrefslogtreecommitdiffhomepage
path: root/Crypto.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-04-26 16:15:43 -0400
committerJoey Hess <joeyh@joeyh.name>2017-04-26 16:18:01 -0400
commit52f9c68869fa8956db55980f0b36ba817f825ffb (patch)
treeb288b73ee5766a0048b1e2d593a0d0ec130044c0 /Crypto.hs
parent62f7653e39e95d3e9cd308810e487e3cdee84d52 (diff)
downloaddebug-me-52f9c68869fa8956db55980f0b36ba817f825ffb.tar.gz
include elapsedTime in Activity
Time is relative, so the debug-me proof chain doesn't prove when things happened, but it's still useful to have some idea of how long things took to happen. This makes --replay work with logs gotten by --download. Log still includes loggedTimestamp. This is a bit redundant, and is unused now, but it's useful for log files to record when messages were received. This commit was sponsored by Riku Voipio.
Diffstat (limited to 'Crypto.hs')
-rw-r--r--Crypto.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Crypto.hs b/Crypto.hs
index d973034..e56db89 100644
--- a/Crypto.hs
+++ b/Crypto.hs
@@ -25,8 +25,8 @@ class Signed t where
instance Hashable a => Signed (Activity a) where
getSignature = activitySignature
- hashExceptSignature (Activity a mp _s) = hash $
- Tagged "Activity" [hash a, hash mp]
+ hashExceptSignature (Activity a mp mt _s) = hash $
+ Tagged "Activity" [hash a, hash mp, hash mt]
instance Signed Control where
getSignature = controlSignature