Disable fInbound requirement for preferred-sync peers

This commit is contained in:
Matt Corallo 2016-03-26 16:55:37 -07:00 committed by Gregory Sanders
parent c04435d2f0
commit 4254f332cd

View file

@ -354,7 +354,7 @@ void UpdatePreferredDownload(CNode* node, CNodeState* state)
nPreferredDownload -= state->fPreferredDownload;
// Whether this node should be marked as a preferred download node.
state->fPreferredDownload = (!node->fInbound || node->fWhitelisted) && !node->fOneShot && !node->fClient;
state->fPreferredDownload = !node->fOneShot && !node->fClient;
nPreferredDownload += state->fPreferredDownload;
}