mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-01 11:16:11 -04:00
Remind not to send direct message to oneself in network stress test
This commit is contained in:
parent
1f6ea10bd6
commit
bad681d8e8
1 changed files with 1 additions and 0 deletions
|
@ -304,6 +304,7 @@ public class NetworkStressTest {
|
|||
long nextSendMillis = System.currentTimeMillis();
|
||||
for (int i = 0; i < directCount; i++) {
|
||||
// Select a random peer and send a direct message to it...
|
||||
// TODO: Do not send the message to oneself.
|
||||
final int dstPeerIdx = (int) (Math.random() * nPeers);
|
||||
final P2PService dstPeer = peerNodes.get(dstPeerIdx);
|
||||
final NodeAddress dstPeerAddress = dstPeer.getAddress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue