summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-20 17:46:02 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-20 17:46:02 +0200
commit24d5d46ade3ad70889855cdbe3a1a61754bdfb92 (patch)
treedc7f026a2c4b814abf02b09365271be74ca97e2e
parentc81fbcd85bf914163ba090ba3cafe2b53fe20924 (diff)
fix
-rw-r--r--src/revocation/revocation_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index 1aff7c2f6..771bcb92d 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -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;
}