{
zone_publish_time_window
= GNUNET_TIME_relative_min (min_relative_record_time,
- zone_publish_time_window);
+ DEFAULT_ZONE_PUBLISH_TIME_WINDOW);
put_interval = GNUNET_TIME_relative_divide (zone_publish_time_window,
num_public_records);
}
uint64_t expiration_time;
/**
- * Number of bytes in 'data'.
+ * Number of bytes in @e data.
*/
size_t data_size;
GNS_resolver_lookup_cancel (rh);
return;
}
+ if (0 == GNUNET_TIME_absolute_get_remaining (GNUNET_TIME_absolute_ntoh (block->expiration_time)).rel_value_us)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Received expired block from the DHT, will not cache it.\n");
+ return;
+ }
/* Cache well-formed blocks */
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Caching response from the DHT in namestore\n");
GNS_resolver_lookup_cancel (rh);
return;
}
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Decrypting block from the namestore\n");
if (GNUNET_OK !=
GNUNET_GNSRECORD_block_decrypt (block,
auth,