aboutsummaryrefslogtreecommitdiff
path: root/src/dht
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/dht
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/dht')
-rw-r--r--src/dht/plugin_block_dht.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dht/plugin_block_dht.c b/src/dht/plugin_block_dht.c
index 74498746c..96349ae9d 100644
--- a/src/dht/plugin_block_dht.c
+++ b/src/dht/plugin_block_dht.c
@@ -92,6 +92,7 @@ block_plugin_dht_create_group (void *cls,
92 * request evaluation, simply pass "NULL" for the @a reply_block. 92 * request evaluation, simply pass "NULL" for the @a reply_block.
93 * 93 *
94 * @param cls closure 94 * @param cls closure
95 * @param ctx context
95 * @param type block type 96 * @param type block type
96 * @param group block group to check against 97 * @param group block group to check against
97 * @param eo control flags 98 * @param eo control flags
@@ -104,6 +105,7 @@ block_plugin_dht_create_group (void *cls,
104 */ 105 */
105static enum GNUNET_BLOCK_EvaluationResult 106static enum GNUNET_BLOCK_EvaluationResult
106block_plugin_dht_evaluate (void *cls, 107block_plugin_dht_evaluate (void *cls,
108 struct GNUNET_BLOCK_Context *ctx,
107 enum GNUNET_BLOCK_Type type, 109 enum GNUNET_BLOCK_Type type,
108 struct GNUNET_BLOCK_Group *group, 110 struct GNUNET_BLOCK_Group *group,
109 enum GNUNET_BLOCK_EvaluationOptions eo, 111 enum GNUNET_BLOCK_EvaluationOptions eo,