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

Fee recipient: checksum log #10664

Merged
merged 23 commits into from
May 11, 2022
Merged

Fee recipient: checksum log #10664

merged 23 commits into from
May 11, 2022

Conversation

james-prysm
Copy link
Contributor

@james-prysm james-prysm commented May 9, 2022

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Reopening PR for checksum check for fee recipient.

Users should be aware when they use a non checksummed fee recipient. This new validation will warn users that they are using the non checksummed version but using the correct address with all lower case(invalid checksum) would still go to the same destination ( correct checksum address)

Which issues(s) does this PR fix?

Fixes #10631

@james-prysm james-prysm self-assigned this May 9, 2022
@james-prysm james-prysm added Merge PRs related to the great milestone the merge UX cosmetic / user experience related labels May 9, 2022
@james-prysm james-prysm marked this pull request as ready for review May 9, 2022 19:07
@james-prysm james-prysm requested a review from a team as a code owner May 9, 2022 19:07
}
checksumAddress := common.HexToAddress(ha)
if !mixedcaseAddress.ValidChecksum() {
log.Warnf("fee recipient %s is not a valid checksum address. The checksummed address is %s and this will be used as the fee recipient", ha, checksumAddress.Hex())
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's consider this log from the user's perspective. Many do not know what a checksum is, so we should instead warn them that a checksummed address is safer to prevent against spelling mistakes in Ethereum addresses. The provided address was not checksummed and will be used as is when setting transaction fee recipients

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'll go ahead and update this

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe something about how we recommend using a mixed-case address to prevent against spelling mistakes in your fee recipient Ethereum address. The provided address is not a valid checksum (mixed-case) address. Not sure if we should link people to a specific place, but something worth thinking about

@james-prysm james-prysm requested a review from rauljordan May 10, 2022 01:35
validator/node/node.go Outdated Show resolved Hide resolved
rauljordan
rauljordan previously approved these changes May 11, 2022
rauljordan
rauljordan previously approved these changes May 11, 2022
@prylabs-bulldozer prylabs-bulldozer bot merged commit 184e5be into develop May 11, 2022
@delete-merged-branch delete-merged-branch bot deleted the fee-recipient-checksum branch May 11, 2022 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge PRs related to the great milestone the merge UX cosmetic / user experience related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checksum to fee recipient address
2 participants