From 937d346676067daf1d7d8a07722ba62cc3724b09 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 18 Jan 2016 10:29:07 -0500 Subject: [PATCH] set clove expiration time interval to 8 seconds --- Garlic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Garlic.cpp b/Garlic.cpp index 0008e25e..71688305 100644 --- a/Garlic.cpp +++ b/Garlic.cpp @@ -208,7 +208,7 @@ namespace garlic size_t GarlicRoutingSession::CreateGarlicPayload (uint8_t * payload, std::shared_ptr msg, UnconfirmedTags * newTags) { - uint64_t ts = i2p::util::GetMillisecondsSinceEpoch () + 5000; // 5 sec + uint64_t ts = i2p::util::GetMillisecondsSinceEpoch () + 8000; // 8 sec uint32_t msgID; RAND_bytes ((uint8_t *)&msgID, 4); size_t size = 0; @@ -268,7 +268,7 @@ namespace garlic size_t GarlicRoutingSession::CreateGarlicClove (uint8_t * buf, std::shared_ptr msg, bool isDestination) { - uint64_t ts = i2p::util::GetMillisecondsSinceEpoch () + 5000; // 5 sec + uint64_t ts = i2p::util::GetMillisecondsSinceEpoch () + 8000; // 8 sec size_t size = 0; if (isDestination && m_Destination) { @@ -326,7 +326,7 @@ namespace garlic memcpy (buf + size, msg->GetBuffer (), msg->GetLength ()); size += msg->GetLength (); // fill clove - uint64_t ts = i2p::util::GetMillisecondsSinceEpoch () + 5000; // 5 sec + uint64_t ts = i2p::util::GetMillisecondsSinceEpoch () + 8000; // 8 sec uint32_t cloveID; RAND_bytes ((uint8_t *)&cloveID, 4); htobe32buf (buf + size, cloveID); // CloveID