Skip to content

Commit

Permalink
Merge pull request #5196 from jmacxx/fix_SignaturePubKey_error
Browse files Browse the repository at this point in the history
Prevent erroneous logging of 'SignaturePubKey in message does not match'
  • Loading branch information
ripcurlx authored Feb 18, 2021
2 parents cd8c479 + 4afa846 commit 2e89e59
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ protected void onMailboxMessage(TradeMessage message, NodeAddress peerNodeAddres

@Override
public void onDirectMessage(DecryptedMessageWithPubKey decryptedMessageWithPubKey, NodeAddress peer) {
if (!isPubKeyValid(decryptedMessageWithPubKey)) {
NetworkEnvelope networkEnvelope = decryptedMessageWithPubKey.getNetworkEnvelope();
if (!isMyMessage(networkEnvelope)) {
return;
}

NetworkEnvelope networkEnvelope = decryptedMessageWithPubKey.getNetworkEnvelope();
if (!isMyMessage(networkEnvelope)) {
if (!isPubKeyValid(decryptedMessageWithPubKey)) {
return;
}

Expand Down

0 comments on commit 2e89e59

Please sign in to comment.