summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/normal/dir.c')
-rw-r--r--src/ipcpd/normal/dir.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ipcpd/normal/dir.c b/src/ipcpd/normal/dir.c
index 6d04c66a..0d046cd6 100644
--- a/src/ipcpd/normal/dir.c
+++ b/src/ipcpd/normal/dir.c
@@ -39,8 +39,6 @@
#include <inttypes.h>
#define KAD_B (hash_len(ipcpi.dir_hash_algo) * CHAR_BIT)
-#define ENROL_RETR 6
-#define ENROL_INTV 1
struct dht * dht;
@@ -72,22 +70,6 @@ int dir_bootstrap(void) {
return 0;
}
-int dir_enroll(uint64_t addr) {
- size_t retr = 0;
- log_dbg("Enrolling directory with peer %" PRIu64 ".", addr);
- while (dht_enroll(dht, addr)) {
- if (retr++ == ENROL_RETR)
- return -EPERM;
-
- log_dbg("Directory enrollment failed, retrying...");
- sleep(ENROL_INTV);
- }
-
- log_info("Directory enrolled.");
-
- return 0;
-}
-
int dir_reg(const uint8_t * hash)
{
return dht_reg(dht, hash);