diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-21 15:45:12 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-21 15:45:12 +0200 |
commit | e64ec174f28812a18fd35f5d671a03e335380d93 (patch) | |
tree | 41163115e277b0f33abcdeee758960753ccb1d81 /src/revocation/gnunet-revocation.c | |
parent | 19b772329cb8968e5e96e33d5238f172f5553dc4 (diff) | |
download | gnunet-e64ec174f28812a18fd35f5d671a03e335380d93.tar.gz gnunet-e64ec174f28812a18fd35f5d671a03e335380d93.zip |
rename, fix
Diffstat (limited to 'src/revocation/gnunet-revocation.c')
-rw-r--r-- | src/revocation/gnunet-revocation.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c index 2230114ae..2c46a20e7 100644 --- a/src/revocation/gnunet-revocation.c +++ b/src/revocation/gnunet-revocation.c | |||
@@ -86,7 +86,7 @@ static unsigned long long matching_bits; | |||
86 | /** | 86 | /** |
87 | * Epoch length | 87 | * Epoch length |
88 | */ | 88 | */ |
89 | static struct GNUNET_TIME_Relative epoch_length; | 89 | static struct GNUNET_TIME_Relative epoch_duration; |
90 | 90 | ||
91 | /** | 91 | /** |
92 | * Task used for proof-of-work calculation. | 92 | * Task used for proof-of-work calculation. |
@@ -348,7 +348,7 @@ ego_callback (void *cls, const struct GNUNET_IDENTITY_Ego *ego) | |||
348 | if (GNUNET_YES == | 348 | if (GNUNET_YES == |
349 | GNUNET_REVOCATION_check_pow (&proof_of_work, | 349 | GNUNET_REVOCATION_check_pow (&proof_of_work, |
350 | (unsigned int) matching_bits, | 350 | (unsigned int) matching_bits, |
351 | epoch_length)) | 351 | epoch_duration)) |
352 | { | 352 | { |
353 | fprintf (stderr, "%s", _ ("Revocation certificate ready\n")); | 353 | fprintf (stderr, "%s", _ ("Revocation certificate ready\n")); |
354 | if (perform) | 354 | if (perform) |
@@ -432,12 +432,12 @@ run (void *cls, | |||
432 | } | 432 | } |
433 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_time (cfg, | 433 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_time (cfg, |
434 | "REVOCATION", | 434 | "REVOCATION", |
435 | "EPOCH_LENGTH", | 435 | "EPOCH_DURATION", |
436 | &epoch_length)) | 436 | &epoch_duration)) |
437 | { | 437 | { |
438 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, | 438 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, |
439 | "REVOCATION", | 439 | "REVOCATION", |
440 | "EPOCH_LENGTH"); | 440 | "EPOCH_DURATION"); |
441 | return; | 441 | return; |
442 | } | 442 | } |
443 | 443 | ||
@@ -470,7 +470,7 @@ run (void *cls, | |||
470 | if (GNUNET_YES != | 470 | if (GNUNET_YES != |
471 | GNUNET_REVOCATION_check_pow (&proof_of_work, | 471 | GNUNET_REVOCATION_check_pow (&proof_of_work, |
472 | (unsigned int) matching_bits, | 472 | (unsigned int) matching_bits, |
473 | epoch_length)) | 473 | epoch_duration)) |
474 | { | 474 | { |
475 | struct GNUNET_REVOCATION_PowCalculationHandle *ph; | 475 | struct GNUNET_REVOCATION_PowCalculationHandle *ph; |
476 | ph = GNUNET_REVOCATION_pow_start (&proof_of_work, | 476 | ph = GNUNET_REVOCATION_pow_start (&proof_of_work, |