mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
save b33 addresses
This commit is contained in:
parent
f5ab8f2062
commit
3fd9d5f641
3 changed files with 23 additions and 6 deletions
|
@ -189,13 +189,14 @@ namespace client
|
|||
}
|
||||
|
||||
for (const auto& it: addresses)
|
||||
{
|
||||
{
|
||||
f << it.first << ",";
|
||||
if (it.second->IsIdentHash ())
|
||||
{
|
||||
f << it.first << "," << it.second->identHash.ToBase32 () << std::endl;
|
||||
num++;
|
||||
}
|
||||
// TODO: save blinded public key
|
||||
f << it.second->identHash.ToBase32 ();
|
||||
else
|
||||
f << it.second->blindedPublicKey->ToB33 ();
|
||||
f << std::endl;
|
||||
num++;
|
||||
}
|
||||
LogPrint (eLogInfo, "Addressbook: ", num, " addresses saved");
|
||||
return num;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue