save b33 addresses

This commit is contained in:
orignal 2019-03-28 16:06:53 -04:00
parent f5ab8f2062
commit 3fd9d5f641
3 changed files with 23 additions and 6 deletions

View file

@ -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;