diff options
Diffstat (limited to 'src/revocation/plugin_block_revocation.c')
-rw-r--r-- | src/revocation/plugin_block_revocation.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/revocation/plugin_block_revocation.c b/src/revocation/plugin_block_revocation.c index f384cfe1d..291c56f70 100644 --- a/src/revocation/plugin_block_revocation.c +++ b/src/revocation/plugin_block_revocation.c | |||
@@ -52,7 +52,7 @@ | |||
52 | struct InternalContext | 52 | struct InternalContext |
53 | { | 53 | { |
54 | unsigned int matching_bits; | 54 | unsigned int matching_bits; |
55 | struct GNUNET_TIME_Relative epoch_length; | 55 | struct GNUNET_TIME_Relative epoch_duration; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | 58 | ||
@@ -146,7 +146,7 @@ block_plugin_revocation_evaluate (void *cls, | |||
146 | if (0 >= | 146 | if (0 >= |
147 | GNUNET_REVOCATION_check_pow (&rm->proof_of_work, | 147 | GNUNET_REVOCATION_check_pow (&rm->proof_of_work, |
148 | ic->matching_bits, | 148 | ic->matching_bits, |
149 | ic->epoch_length)) | 149 | ic->epoch_duration)) |
150 | { | 150 | { |
151 | GNUNET_break_op (0); | 151 | GNUNET_break_op (0); |
152 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | 152 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; |
@@ -210,7 +210,7 @@ libgnunet_plugin_block_revocation_init (void *cls) | |||
210 | struct GNUNET_BLOCK_PluginFunctions *api; | 210 | struct GNUNET_BLOCK_PluginFunctions *api; |
211 | struct InternalContext *ic; | 211 | struct InternalContext *ic; |
212 | unsigned long long matching_bits; | 212 | unsigned long long matching_bits; |
213 | struct GNUNET_TIME_Relative epoch_length; | 213 | struct GNUNET_TIME_Relative epoch_duration; |
214 | 214 | ||
215 | if (GNUNET_OK != | 215 | if (GNUNET_OK != |
216 | GNUNET_CONFIGURATION_get_value_number (cfg, | 216 | GNUNET_CONFIGURATION_get_value_number (cfg, |
@@ -221,8 +221,8 @@ libgnunet_plugin_block_revocation_init (void *cls) | |||
221 | if (GNUNET_OK != | 221 | if (GNUNET_OK != |
222 | GNUNET_CONFIGURATION_get_value_time (cfg, | 222 | GNUNET_CONFIGURATION_get_value_time (cfg, |
223 | "REVOCATION", | 223 | "REVOCATION", |
224 | "EPOCH_LENGTH", | 224 | "EPOCH_DURATION", |
225 | &epoch_length)) | 225 | &epoch_duration)) |
226 | return NULL; | 226 | return NULL; |
227 | 227 | ||
228 | api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions); | 228 | api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions); |
@@ -232,7 +232,7 @@ libgnunet_plugin_block_revocation_init (void *cls) | |||
232 | api->types = types; | 232 | api->types = types; |
233 | ic = GNUNET_new (struct InternalContext); | 233 | ic = GNUNET_new (struct InternalContext); |
234 | ic->matching_bits = (unsigned int) matching_bits; | 234 | ic->matching_bits = (unsigned int) matching_bits; |
235 | ic->epoch_length = epoch_length; | 235 | ic->epoch_duration = epoch_duration; |
236 | api->cls = ic; | 236 | api->cls = ic; |
237 | return api; | 237 | return api; |
238 | } | 238 | } |