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

cmd/devp2p: fix comparison of TXT record value #22572

Merged
merged 3 commits into from
Mar 25, 2021

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Mar 25, 2021

The AWS API returns quoted DNS strings, so we must encode the new value
before comparing it against the existing record content. This also changes the
logging a bit to be more helpful.

Replaces #22536.

The AWS API returns quoted DNS strings, so we must encode the new value
before comparing it against the existing record content.
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe added this to the 1.10.2 milestone Mar 25, 2021
@karalabe karalabe merged commit bed74b3 into ethereum:master Mar 25, 2021
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
* cmd/devp2p: fix comparison of TXT record value

The AWS API returns quoted DNS strings, so we must encode the new value
before comparing it against the existing record content.

* cmd/devp2p: add test

* cmd/devp2p: fix typo and rename val -> newValue
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