aboutsummaryrefslogtreecommitdiff
path: root/src/gns
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/gns
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/gns')
-rw-r--r--src/gns/plugin_block_gns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c
index 2ef48f094..558ded6f4 100644
--- a/src/gns/plugin_block_gns.c
+++ b/src/gns/plugin_block_gns.c
@@ -98,6 +98,7 @@ block_plugin_gns_create_group (void *cls,
98 * be done with the "get_key" function. 98 * be done with the "get_key" function.
99 * 99 *
100 * @param cls closure 100 * @param cls closure
101 * @param ctx block context
101 * @param type block type 102 * @param type block type
102 * @param bg block group to use for evaluation 103 * @param bg block group to use for evaluation
103 * @param eo control flags 104 * @param eo control flags
@@ -110,6 +111,7 @@ block_plugin_gns_create_group (void *cls,
110 */ 111 */
111static enum GNUNET_BLOCK_EvaluationResult 112static enum GNUNET_BLOCK_EvaluationResult
112block_plugin_gns_evaluate (void *cls, 113block_plugin_gns_evaluate (void *cls,
114 struct GNUNET_BLOCK_Context *ctx,
113 enum GNUNET_BLOCK_Type type, 115 enum GNUNET_BLOCK_Type type,
114 struct GNUNET_BLOCK_Group *bg, 116 struct GNUNET_BLOCK_Group *bg,
115 enum GNUNET_BLOCK_EvaluationOptions eo, 117 enum GNUNET_BLOCK_EvaluationOptions eo,