fix
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Mon, 20 Apr 2020 15:46:02 +0000 (17:46 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Mon, 20 Apr 2020 15:46:02 +0000 (17:46 +0200)
src/revocation/revocation_api.c

index 1aff7c2f6672614cfae2287ab03e27aaaf4e71d1..771bcb92dbc7b55eed155cb0cb83d55339c674a0 100644 (file)
@@ -457,7 +457,7 @@ GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_Pow *pow,
   }
   score = score / POW_COUNT;
   if (score < difficulty)
-    return GNUNET_NO;
+    return -1;
   epochs = score - difficulty;
   return epochs;
 }