mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
Merge pull request #381 from ivilata/DuplicatedCheckSendDirect
Duplicated check when sending direct message, check remote and local address
This commit is contained in:
commit
9a8413d473
@ -397,9 +397,9 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
|
||||
private void doSendEncryptedDirectMessage(@NotNull NodeAddress peersNodeAddress, PubKeyRing pubKeyRing, DirectMessage message,
|
||||
SendDirectMessageListener sendDirectMessageListener) {
|
||||
Log.traceCall();
|
||||
checkNotNull(networkNode.getNodeAddress(), "My node address must not be null at doSendEncryptedDirectMessage");
|
||||
checkNotNull(peersNodeAddress, "Peer node address must not be null at doSendEncryptedDirectMessage");
|
||||
checkArgument(optionalEncryptionService.isPresent(), "EncryptionService not set. Seems that is called on a seed node which must not happen.");
|
||||
checkNotNull(networkNode.getNodeAddress(), "networkNode.getNodeAddress() must not be null.");
|
||||
checkNotNull(networkNode.getNodeAddress(), "My node address must not be null at doSendEncryptedDirectMessage");
|
||||
try {
|
||||
log.info("\n\nEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\n" +
|
||||
"Encrypt message:\nmessage={}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user