summaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-service-revocation.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-20 08:24:06 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-20 08:24:06 +0200
commit6d61330e3ae457a27f10247cd9caf53987604143 (patch)
treeb877d94ad7bd49be40c0d601e57a09116abc6150 /src/revocation/gnunet-service-revocation.c
parent196a465c2254c224055b71a5bdb3697e7a468801 (diff)
evaluate epochs
Diffstat (limited to 'src/revocation/gnunet-service-revocation.c')
-rw-r--r--src/revocation/gnunet-service-revocation.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c
index 420cb392f..4746a7698 100644
--- a/src/revocation/gnunet-service-revocation.c
+++ b/src/revocation/gnunet-service-revocation.c
@@ -167,8 +167,7 @@ new_peer_entry (const struct GNUNET_PeerIdentity *peer)
static int
verify_revoke_message (const struct RevokeMessage *rm)
{
- if (GNUNET_YES !=
- GNUNET_REVOCATION_check_pow (&rm->proof_of_work,
+ if (0 >= GNUNET_REVOCATION_check_pow (&rm->proof_of_work,
(unsigned int) revocation_work_required))
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,