mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-28 00:07:09 -05:00
Bob's reputations code
- enables score calculation git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7230 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2bed14865f
commit
11fa133377
@ -509,12 +509,17 @@ bool p3IdService::getReputation(const RsGxsId &id, GixsReputation &rep)
|
|||||||
if (mPublicKeyCache.fetch(id, data))
|
if (mPublicKeyCache.fetch(id, data))
|
||||||
{
|
{
|
||||||
rep.id = id;
|
rep.id = id;
|
||||||
// Score > 0 is okay.
|
rep.score = data.details.mReputation.mOverallScore;
|
||||||
// Will extract score from Cache Info.
|
std::cerr << "p3IdService::getReputation() id: ";
|
||||||
// For the moment just return positive number.
|
std::cerr << id.toStdString() << " score: " <<
|
||||||
rep.score = 10;
|
rep.score;
|
||||||
|
std::cerr << std::endl;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
std::cerr << "p3IdService::getReputation() id: ";
|
||||||
|
std::cerr << id.toStdString() << " not cached";
|
||||||
|
std::cerr << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user