diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-26 23:39:29 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-26 23:39:29 +0100 |
commit | 82242cae3bb6313ee10df20570e4c14627828033 (patch) | |
tree | c628b5323c1ec8cbf0915e04bb7a1fa7864d7ea9 /src/include | |
parent | cc8f37a834298d95c233769d19eb9cd17e3dbcfd (diff) | |
download | gnunet-82242cae3bb6313ee10df20570e4c14627828033.tar.gz gnunet-82242cae3bb6313ee10df20570e4c14627828033.zip |
add validation for inner consensus element
The nested block validation requires the block context, and thus the
evaluate callback not also receives the block context.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_block_plugin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/gnunet_block_plugin.h b/src/include/gnunet_block_plugin.h index 171b6cfc0..3eb031573 100644 --- a/src/include/gnunet_block_plugin.h +++ b/src/include/gnunet_block_plugin.h | |||
@@ -171,6 +171,7 @@ typedef struct GNUNET_BLOCK_Group * | |||
171 | * be done with the "get_key" function. | 171 | * be done with the "get_key" function. |
172 | * | 172 | * |
173 | * @param cls closure | 173 | * @param cls closure |
174 | * @param ctx block context | ||
174 | * @param type block type | 175 | * @param type block type |
175 | * @param group which block group to use for evaluation | 176 | * @param group which block group to use for evaluation |
176 | * @param eo evaluation options to control evaluation | 177 | * @param eo evaluation options to control evaluation |
@@ -183,6 +184,7 @@ typedef struct GNUNET_BLOCK_Group * | |||
183 | */ | 184 | */ |
184 | typedef enum GNUNET_BLOCK_EvaluationResult | 185 | typedef enum GNUNET_BLOCK_EvaluationResult |
185 | (*GNUNET_BLOCK_EvaluationFunction) (void *cls, | 186 | (*GNUNET_BLOCK_EvaluationFunction) (void *cls, |
187 | struct GNUNET_BLOCK_Context *ctx, | ||
186 | enum GNUNET_BLOCK_Type type, | 188 | enum GNUNET_BLOCK_Type type, |
187 | struct GNUNET_BLOCK_Group *group, | 189 | struct GNUNET_BLOCK_Group *group, |
188 | enum GNUNET_BLOCK_EvaluationOptions eo, | 190 | enum GNUNET_BLOCK_EvaluationOptions eo, |