aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/plugin_block_revocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revocation/plugin_block_revocation.c')
-rw-r--r--src/revocation/plugin_block_revocation.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/revocation/plugin_block_revocation.c b/src/revocation/plugin_block_revocation.c
index 8d16b8781..57234fa36 100644
--- a/src/revocation/plugin_block_revocation.c
+++ b/src/revocation/plugin_block_revocation.c
@@ -134,6 +134,7 @@ block_plugin_revocation_evaluate (void *cls,
134 struct InternalContext *ic = cls; 134 struct InternalContext *ic = cls;
135 struct GNUNET_HashCode chash; 135 struct GNUNET_HashCode chash;
136 const struct RevokeMessage *rm = reply_block; 136 const struct RevokeMessage *rm = reply_block;
137 struct GNUNET_TIME_Absolute ts;
137 138
138 if (NULL == reply_block) 139 if (NULL == reply_block)
139 return GNUNET_BLOCK_EVALUATION_REQUEST_VALID; 140 return GNUNET_BLOCK_EVALUATION_REQUEST_VALID;
@@ -142,8 +143,10 @@ block_plugin_revocation_evaluate (void *cls,
142 GNUNET_break_op (0); 143 GNUNET_break_op (0);
143 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; 144 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
144 } 145 }
146 ts = GNUNET_TIME_absolute_ntoh (rm->ts);
145 if (GNUNET_YES != 147 if (GNUNET_YES !=
146 GNUNET_REVOCATION_check_pow (&rm->public_key, 148 GNUNET_REVOCATION_check_pow (&rm->public_key,
149 &ts,
147 rm->proof_of_work, 150 rm->proof_of_work,
148 ic->matching_bits)) 151 ic->matching_bits))
149 { 152 {