Latency-aware fetch pack target selection

This commit is contained in:
JoelKatz
2015-05-19 14:00:03 -07:00
committed by Nik Bougalis
parent 6f5d8bba2d
commit 172e967a73
4 changed files with 20 additions and 9 deletions

View File

@@ -2171,7 +2171,7 @@ PeerImp::peerTXData (Job&, uint256 const& hash,
}
int
PeerImp::getScore (bool haveItem)
PeerImp::getScore (bool haveItem) const
{
// Random component of score, used to break ties and avoid
// overloading the "best" peer