Send network broadcasts over all handshake-completed peers.

Previously we preferred the outbound connection but actually
this leaves our info about inbound connection peers out of date.

Synchronizer still prefers outbound.
This commit is contained in:
catbref 2019-05-25 08:38:47 +01:00
parent 1046f72e7b
commit c917191df2

View File

@ -717,7 +717,7 @@ public class Network extends Thread {
}
try {
peerExecutor.execute(new Broadcaster(this.getUniqueHandshakedPeers(), peerMessage));
peerExecutor.execute(new Broadcaster(this.getHandshakedPeers(), peerMessage));
} catch (RejectedExecutionException e) {
// Can't execute - probably because we're shutting down, so ignore
}