*/
#include "platform.h"
-#include "gnunet_common.h"
#include "gnunet_util_lib.h"
+#include "gnunet_common.h"
#include "gnunet_testing_lib.h"
#include "gnunet_psycstore_service.h"
void
-counters_result (void *cls, uint64_t max_fragment_id, uint64_t max_message_id,
- uint64_t max_group_generation, uint64_t max_state_message_id)
+counters_result (void *cls, int status, uint64_t max_fragment_id,
+ uint64_t max_message_id, uint64_t max_group_generation,
+ uint64_t max_state_message_id)
{
struct FragmentClosure *fcls = cls;
int result = 0;
op = NULL;
- if (max_fragment_id == GNUNET_ntohll (fcls->msg[2]->fragment_id)
+ if (GNUNET_OK == status
+ && max_fragment_id == GNUNET_ntohll (fcls->msg[2]->fragment_id)
&& max_message_id == GNUNET_ntohll (fcls->msg[2]->message_id)
&& max_group_generation == GNUNET_ntohll (fcls->msg[2]->group_generation)
&& max_state_message_id == GNUNET_ntohll (fcls->msg[0]->message_id))
h = GNUNET_PSYCSTORE_connect (cfg);
GNUNET_assert (NULL != h);
- channel_key = GNUNET_CRYPTO_ecc_key_create ();
- slave_key = GNUNET_CRYPTO_ecc_key_create ();
+ channel_key = GNUNET_CRYPTO_eddsa_key_create ();
+ slave_key = GNUNET_CRYPTO_eddsa_key_create ();
GNUNET_CRYPTO_eddsa_key_get_public (channel_key, &channel_pub_key);
GNUNET_CRYPTO_eddsa_key_get_public (slave_key, &slave_pub_key);