forked from Qortal/qortal
Only rebroadcast file list requests when in relay mode.
This commit is contained in:
parent
22cf870555
commit
be3069e0e5
@ -1021,12 +1021,14 @@ public class ArbitraryDataManager extends Thread {
|
||||
|
||||
}
|
||||
else {
|
||||
// Ask our other peers if they have it
|
||||
LOGGER.info("Rebroadcasted hash list request from peer {} for signature {} to our other peers", peer, Base58.encode(signature));
|
||||
Network.getInstance().broadcast(
|
||||
broadcastPeer -> broadcastPeer == peer ||
|
||||
Objects.equals(broadcastPeer.getPeerData().getAddress().getHost(), peer.getPeerData().getAddress().getHost())
|
||||
? null : message);
|
||||
if (Settings.getInstance().isRelayModeEnabled()) {
|
||||
// In relay mode - so ask our other peers if they have it
|
||||
LOGGER.info("Rebroadcasted hash list request from peer {} for signature {} to our other peers", peer, Base58.encode(signature));
|
||||
Network.getInstance().broadcast(
|
||||
broadcastPeer -> broadcastPeer == peer ||
|
||||
Objects.equals(broadcastPeer.getPeerData().getAddress().getHost(), peer.getPeerData().getAddress().getHost())
|
||||
? null : message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user