Browse Source

Merge pull request #2041 from Vort/i2np_typo

fix typo in message expiration check
pull/2042/head
orignal 2 months ago committed by GitHub
parent
commit
fbca27fe73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      libi2pd/I2NPProtocol.h

2
libi2pd/I2NPProtocol.h

@ -268,7 +268,7 @@ namespace tunnel @@ -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; }; }
};

Loading…
Cancel
Save