aboutsummaryrefslogtreecommitdiff
path: root/src/service/peerstore/gnunet-service-peerstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/peerstore/gnunet-service-peerstore.c')
-rw-r--r--src/service/peerstore/gnunet-service-peerstore.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/service/peerstore/gnunet-service-peerstore.c b/src/service/peerstore/gnunet-service-peerstore.c
index 514b173bb..2a8ecdfa2 100644
--- a/src/service/peerstore/gnunet-service-peerstore.c
+++ b/src/service/peerstore/gnunet-service-peerstore.c
@@ -555,7 +555,7 @@ hosts_directory_scan_callback (void *cls, const char *fullname)
555 char buffer[GNUNET_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN; 555 char buffer[GNUNET_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN;
556 const struct GNUNET_MessageHeader *hello; 556 const struct GNUNET_MessageHeader *hello;
557 struct GNUNET_HELLO_Builder *builder; 557 struct GNUNET_HELLO_Builder *builder;
558 struct GNUNET_PeerIdentity *pid; 558 const struct GNUNET_PeerIdentity *pid;
559 559
560 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 560 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
561 "1 hosts_directory_scan_callback filename %s\n", 561 "1 hosts_directory_scan_callback filename %s\n",
@@ -598,14 +598,18 @@ hosts_directory_scan_callback (void *cls, const char *fullname)
598 builder = GNUNET_HELLO_builder_from_msg (hello); 598 builder = GNUNET_HELLO_builder_from_msg (hello);
599 pid = GNUNET_HELLO_builder_get_id (builder); 599 pid = GNUNET_HELLO_builder_get_id (builder);
600 600
601 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
602 "store contrib hello for peer %s\n",
603 GNUNET_i2s (pid));
604
601 if (GNUNET_OK != db->store_record (db->cls, 605 if (GNUNET_OK != db->store_record (db->cls,
602 "peerstore", 606 "peerstore",
603 pid, 607 pid,
604 "", 608 GNUNET_PEERSTORE_HELLO_KEY,
605 hello, 609 hello,
606 size_total, 610 size_total,
607 GNUNET_TIME_UNIT_FOREVER_ABS, 611 GNUNET_TIME_UNIT_FOREVER_ABS,
608 GNUNET_PEERSTORE_STOREOPTION_REPLACE, 612 GNUNET_PEERSTORE_STOREOPTION_MULTIPLE,
609 &store_hello_continuation, 613 &store_hello_continuation,
610 NULL)) 614 NULL))
611 { 615 {