HTTPPORT = 8080
HOSTNAME = localhost
HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
CONFIG = $DEFAULTCONFIG
BINARY = gnunet-daemon-hostlist
# consider having "-e" as default as well once implemented
#include "fs.h"
#include "fs_tree.h"
-#define DEBUG_DOWNLOAD GNUNET_YES
+#define DEBUG_DOWNLOAD GNUNET_NO
/**
* We're storing the IBLOCKS after the DBLOCKS on disk (so that we
#include "fs.h"
#include "fs_tree.h"
-#define DEBUG_PUBLISH GNUNET_YES
+#define DEBUG_PUBLISH GNUNET_NO
/**
* Main function that performs the upload.
GNUNET_free_non_null (sc->nid);
GNUNET_free_non_null (sc->nuid);
GNUNET_DATASTORE_disconnect (sc->dsh, GNUNET_NO);
+ if (sc->client != NULL)
+ GNUNET_CLIENT_disconnect (sc->client, GNUNET_NO);
GNUNET_free (sc);
}
#include "platform.h"
#include "fs_tree.h"
-#define DEBUG_TREE GNUNET_YES
+#define DEBUG_TREE GNUNET_NO
/**
* Context for an ECRS-based file encoder that computes
corresponds to */
for (i=0;i<height;i++)
bds *= CHK_PER_INODE;
+ if (height > 0)
+ offset--; /* round down since for height > 0 offset is at the END of the block */
ret = offset / bds;
return ret % CHK_PER_INODE;
}