diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-18 19:46:44 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-18 19:46:44 +0200 |
commit | f00c18e631ce8bdaf80d20f236ef275c9cb99291 (patch) | |
tree | 7926acf614e631febcbd5c99243d9c00edd2fbc2 /src/revocation/gnunet-service-revocation.c | |
parent | 91cccda131a12be139d50effe4657c6b24e36135 (diff) | |
download | gnunet-f00c18e631ce8bdaf80d20f236ef275c9cb99291.tar.gz gnunet-f00c18e631ce8bdaf80d20f236ef275c9cb99291.zip |
simplify pow even more; add timestamp to revocation pow
Diffstat (limited to 'src/revocation/gnunet-service-revocation.c')
-rw-r--r-- | src/revocation/gnunet-service-revocation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c index 3e811cd9a..ff75faa2c 100644 --- a/src/revocation/gnunet-service-revocation.c +++ b/src/revocation/gnunet-service-revocation.c | |||
@@ -167,8 +167,11 @@ new_peer_entry (const struct GNUNET_PeerIdentity *peer) | |||
167 | static int | 167 | static int |
168 | verify_revoke_message (const struct RevokeMessage *rm) | 168 | verify_revoke_message (const struct RevokeMessage *rm) |
169 | { | 169 | { |
170 | struct GNUNET_TIME_Absolute ts; | ||
171 | ts = GNUNET_TIME_absolute_ntoh (rm->ts); | ||
170 | if (GNUNET_YES != | 172 | if (GNUNET_YES != |
171 | GNUNET_REVOCATION_check_pow (&rm->public_key, | 173 | GNUNET_REVOCATION_check_pow (&rm->public_key, |
174 | &ts, | ||
172 | rm->proof_of_work, | 175 | rm->proof_of_work, |
173 | (unsigned int) revocation_work_required)) | 176 | (unsigned int) revocation_work_required)) |
174 | { | 177 | { |