validate leaseset for zero leases

This commit is contained in:
orignal 2015-04-08 10:34:16 -04:00
parent 9ce9d9b7fc
commit d5e1d5db9c
4 changed files with 46 additions and 10 deletions

View file

@ -44,6 +44,7 @@ namespace data
const uint8_t * GetBuffer () const { return m_Buffer; };
size_t GetBufferLen () const { return m_BufferLen; };
bool IsValid () const { return m_IsValid; };
// implements RoutingDestination
const IdentHash& GetIdentHash () const { return m_Identity.GetIdentHash (); };
@ -60,6 +61,7 @@ namespace data
private:
bool m_IsValid;
std::vector<Lease> m_Leases;
IdentityEx m_Identity;
uint8_t m_EncryptionKey[256];