From 08cc256c54f97c17f469ed9ca9f6c376f8da4907 Mon Sep 17 00:00:00 2001 From: Vort Date: Wed, 13 Mar 2024 16:41:01 +0200 Subject: [PATCH] fix typo in message expiration check --- libi2pd/I2NPProtocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/I2NPProtocol.h b/libi2pd/I2NPProtocol.h index 5d5754c8..f38f79ee 100644 --- a/libi2pd/I2NPProtocol.h +++ b/libi2pd/I2NPProtocol.h @@ -268,7 +268,7 @@ namespace tunnel bool IsExpired () const; bool IsExpired (uint64_t ts) const; // in milliseconds bool IsLocalExpired (uint64_t mts) const { return mts > localExpiration; }; // monotonic microseconds - bool IsLocalSemiExpired (uint64_t mts) const { return mts > localExpiration - I2NP_MESSAGE_EXPIRATION_TIMEOUT / 2; }; // monotonic microseconds + bool IsLocalSemiExpired (uint64_t mts) const { return mts > localExpiration - I2NP_MESSAGE_LOCAL_EXPIRATION_TIMEOUT / 2; }; // monotonic microseconds void Drop () { if (onDrop) { onDrop (); onDrop = nullptr; }; } };