aboutsummaryrefslogtreecommitdiff
path: root/src/block/plugin_block_template.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-02-26 23:39:29 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-02-26 23:39:29 +0100
commit82242cae3bb6313ee10df20570e4c14627828033 (patch)
treec628b5323c1ec8cbf0915e04bb7a1fa7864d7ea9 /src/block/plugin_block_template.c
parentcc8f37a834298d95c233769d19eb9cd17e3dbcfd (diff)
downloadgnunet-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/block/plugin_block_template.c')
-rw-r--r--src/block/plugin_block_template.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/block/plugin_block_template.c b/src/block/plugin_block_template.c
index b714b6858..2edca17ec 100644
--- a/src/block/plugin_block_template.c
+++ b/src/block/plugin_block_template.c
@@ -95,6 +95,7 @@ block_plugin_template_create_group (void *cls,
95 * request evaluation, simply pass "NULL" for the reply_block. 95 * request evaluation, simply pass "NULL" for the reply_block.
96 * 96 *
97 * @param cls closure 97 * @param cls closure
98 * @param ctx context
98 * @param type block type 99 * @param type block type
99 * @param group block group to use 100 * @param group block group to use
100 * @param eo control flags 101 * @param eo control flags
@@ -107,6 +108,7 @@ block_plugin_template_create_group (void *cls,
107 */ 108 */
108static enum GNUNET_BLOCK_EvaluationResult 109static enum GNUNET_BLOCK_EvaluationResult
109block_plugin_template_evaluate (void *cls, 110block_plugin_template_evaluate (void *cls,
111 struct GNUNET_BLOCK_Context *ctx,
110 enum GNUNET_BLOCK_Type type, 112 enum GNUNET_BLOCK_Type type,
111 struct GNUNET_BLOCK_Group *group, 113 struct GNUNET_BLOCK_Group *group,
112 enum GNUNET_BLOCK_EvaluationOptions eo, 114 enum GNUNET_BLOCK_EvaluationOptions eo,