mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 13:37:24 +00:00
Re-evaluate download peer when a new peer connects. Add unit tests for selecting the best peer.
This commit is contained in:
@@ -251,7 +251,7 @@ public class PeerMonitor {
|
||||
setFont(normal);
|
||||
setForeground(Color.LIGHT_GRAY);
|
||||
} else {
|
||||
if (model.connectedPeers.get(row).getDownloadData())
|
||||
if (model.connectedPeers.get(row) == peerGroup.getDownloadPeer())
|
||||
setFont(bold);
|
||||
else
|
||||
setFont(normal);
|
||||
|
||||
Reference in New Issue
Block a user