local destination leaseset storage verification

This commit is contained in:
orignal 2016-02-11 14:45:33 -05:00
parent fbb98e1aec
commit d81ca5f919
3 changed files with 54 additions and 7 deletions

View file

@ -57,6 +57,8 @@ namespace data
bool IsExpired () const;
bool IsEmpty () const { return m_Leases.empty (); };
uint64_t GetExpirationTime () const { return m_ExpirationTime; };
bool operator== (const LeaseSet& other) const
{ return m_BufferLen == other.m_BufferLen && !memcmp (m_Buffer, other.m_Buffer, m_BufferLen); };
// implements RoutingDestination
const IdentHash& GetIdentHash () const { return m_Identity->GetIdentHash (); };