new_element_cb (void *cls,
struct GNUNET_CONSENSUS_Element *element)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO, "received new element\n");
return GNUNET_YES;
}
int i;
+ GNUNET_log_setup ("gnunet-consensus", "INFO", NULL);
+
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "test master\n");
+
peers = started_peers;
peer_ids = GNUNET_malloc (num_peers * sizeof (struct GNUNET_PeerIdentity));
{
static char *session_str = "gnunet-consensus/test";
+ if (num_peers < replication)
+ {
+ fprintf (stderr, "k must be <=n\n");
+ return;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "running gnunet-consensus\n");