From 82242cae3bb6313ee10df20570e4c14627828033 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 26 Feb 2017 23:39:29 +0100 Subject: 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. --- src/block/plugin_block_template.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/block/plugin_block_template.c') 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, * request evaluation, simply pass "NULL" for the reply_block. * * @param cls closure + * @param ctx context * @param type block type * @param group block group to use * @param eo control flags @@ -107,6 +108,7 @@ block_plugin_template_create_group (void *cls, */ static enum GNUNET_BLOCK_EvaluationResult block_plugin_template_evaluate (void *cls, + struct GNUNET_BLOCK_Context *ctx, enum GNUNET_BLOCK_Type type, struct GNUNET_BLOCK_Group *group, enum GNUNET_BLOCK_EvaluationOptions eo, -- cgit v1.2.3