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 {
|
else {
|
||||||
// Ask our other peers if they have it
|
if (Settings.getInstance().isRelayModeEnabled()) {
|
||||||
LOGGER.info("Rebroadcasted hash list request from peer {} for signature {} to our other peers", peer, Base58.encode(signature));
|
// In relay mode - so ask our other peers if they have it
|
||||||
Network.getInstance().broadcast(
|
LOGGER.info("Rebroadcasted hash list request from peer {} for signature {} to our other peers", peer, Base58.encode(signature));
|
||||||
broadcastPeer -> broadcastPeer == peer ||
|
Network.getInstance().broadcast(
|
||||||
Objects.equals(broadcastPeer.getPeerData().getAddress().getHost(), peer.getPeerData().getAddress().getHost())
|
broadcastPeer -> broadcastPeer == peer ||
|
||||||
? null : message);
|
Objects.equals(broadcastPeer.getPeerData().getAddress().getHost(), peer.getPeerData().getAddress().getHost())
|
||||||
|
? null : message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user