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/dht | |
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/dht')
-rw-r--r-- | src/dht/plugin_block_dht.c | 2 |
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 | */ |
105 | static enum GNUNET_BLOCK_EvaluationResult | 106 | static enum GNUNET_BLOCK_EvaluationResult |
106 | block_plugin_dht_evaluate (void *cls, | 107 | block_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, |