Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dht): optimisation, no decrypt if public key dest doesn't match #4131

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented May 24, 2022

Description

Don't attempt decryption if the public key destination does not match the node identity

Motivation and Context

Decryption is not necessary if the destination public key is specified and does not match.

How Has This Been Tested?

Manually, Memorynet and existing tests that check this case already pass.

@sdbondi sdbondi marked this pull request as ready for review May 24, 2022 08:48
@sdbondi sdbondi force-pushed the dht-check-dest-for-decryption branch from 99158bb to c6c0a90 Compare May 24, 2022 09:10
Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aviator-app aviator-app bot merged commit 987972c into tari-project:testnet-dibbler May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants