Parse keystore address without 0x prefix, fix parse error logging#2759
Merged
leszko merged 4 commits intolivepeer:masterfrom Feb 17, 2023
Merged
Parse keystore address without 0x prefix, fix parse error logging#2759leszko merged 4 commits intolivepeer:masterfrom
leszko merged 4 commits intolivepeer:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2759 +/- ##
===================================================
- Coverage 56.30182% 56.29888% -0.00294%
===================================================
Files 88 88
Lines 19177 19178 +1
===================================================
Hits 10797 10797
- Misses 7788 7789 +1
Partials 592 592
Continue to review full report at Codecov.
|
leszko
approved these changes
Feb 17, 2023
Contributor
leszko
left a comment
There was a problem hiding this comment.
Thanks for the fix @eliteprox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this pull request do? Explain your changes. (required)
This resolves a bug from #2713 when parsing keystore addresses without the 0x prefix. Errors from
parseEthKeystorePathwere also not being logged, becauseerrwas only available within the scope ofif err == nil.Specific updates (required)
starter.go.ethcommon.HexToAddresstoethcommon.BytesToAddress(ethcommon.FromHex(address))in parseEthKeystorePath().ethcommon.FromHexconsiders the 0x prefix optional.How did you test each of these updates (required)
TestParse_ParseEthKeystorePathValidFileDoes this pull request close any open issues?
Fixes #2757
Checklist:
makeruns successfully./test.shpass