Browse Source

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.
split-DB
catbref 5 years ago
parent
commit
c917191df2
  1. 2
      src/main/java/org/qora/network/Network.java

2
src/main/java/org/qora/network/Network.java

@ -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
}

Loading…
Cancel
Save