|
|
@ -198,13 +198,18 @@ namespace client |
|
|
|
|
|
|
|
|
|
|
|
for (const auto& it: addresses) |
|
|
|
for (const auto& it: addresses) |
|
|
|
{ |
|
|
|
{ |
|
|
|
f << it.first << ","; |
|
|
|
if (it.second->IsValid ()) |
|
|
|
if (it.second->IsIdentHash ()) |
|
|
|
{ |
|
|
|
f << it.second->identHash.ToBase32 (); |
|
|
|
f << it.first << ","; |
|
|
|
|
|
|
|
if (it.second->IsIdentHash ()) |
|
|
|
|
|
|
|
f << it.second->identHash.ToBase32 (); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
f << it.second->blindedPublicKey->ToB33 (); |
|
|
|
|
|
|
|
f << std::endl; |
|
|
|
|
|
|
|
num++; |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
f << it.second->blindedPublicKey->ToB33 (); |
|
|
|
LogPrint (eLogWarning, "Addressbook: invalid address ", it.first); |
|
|
|
f << std::endl; |
|
|
|
|
|
|
|
num++; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
LogPrint (eLogInfo, "Addressbook: ", num, " addresses saved"); |
|
|
|
LogPrint (eLogInfo, "Addressbook: ", num, " addresses saved"); |
|
|
|
return num; |
|
|
|
return num; |
|
|
|