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/gns | |
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/gns')
-rw-r--r-- | src/gns/plugin_block_gns.c | 2 |
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 | */ |
111 | static enum GNUNET_BLOCK_EvaluationResult | 112 | static enum GNUNET_BLOCK_EvaluationResult |
112 | block_plugin_gns_evaluate (void *cls, | 113 | block_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, |