mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 10:42:35 +00:00
common Identity for LeaseSet and RouterInfo
This commit is contained in:
1 parent
6f1d4f4300
commit
d714d7fe6c
9 files changed
+105
-28
No files matched your search
+1
-1
@@ -30,7 +30,7 @@ namespace data
|
||||
ReadFromBuffer ();
|
||||
}
|
||||
|
||||
void RouterInfo::SetRouterIdentity (const RouterIdentity& identity)
|
||||
void RouterInfo::SetRouterIdentity (const Identity& identity)
|
||||
{
|
||||
m_RouterIdentity = identity;
|
||||
CryptoPP::SHA256().CalculateDigest(m_IdentHash, (uint8_t *)&m_RouterIdentity, sizeof (m_RouterIdentity));
|
||||
|
||||
Reference in new issue
Block a user