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

dcrutil: Remove all code related to Address. #2628

Merged
merged 3 commits into from
Apr 15, 2021

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Mar 17, 2021

This requires #2626.

NOTE: I've left this marked as a draft for now because the go.mod file will need to be updated to use the latest txscript module once the aforementioned prerequisite PRs have landed to avoid issues for external consumers, however, this is otherwise ready for review.


This updates dcrutil to use the new stdaddr package instead of its local Address type and removes all code related to defining and implementing said type.

It moves the AddressParams interface and associated mock implementations in the tests to util.go and util_address.go, respectively, in a separate commit to prepare for the removal, then converts the remaining code that consumes the Address type to use stdaddr in a second commit, and finally removes all code related to defining and implementing the Address type in the final commit.

@davecgh davecgh added this to the 1.7.0 milestone Mar 17, 2021
@davecgh davecgh marked this pull request as draft March 17, 2021 07:57
@davecgh davecgh force-pushed the dcrutil_remove_address branch 2 times, most recently from bb08ab8 to eab478c Compare April 13, 2021 05:58
@davecgh
Copy link
Member Author

davecgh commented Apr 13, 2021

I've updated the dcrutil/go.mod file to use the latest txscript module to avoid issues for external consumers now that the prerequisite PRs have landed and rebased over the latest master. See changes.

@davecgh davecgh marked this pull request as ready for review April 13, 2021 06:00
Copy link
Member

@matheusd matheusd left a comment

Choose a reason for hiding this comment

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

🎉 🎉

This moves the AddressParams interface and associated mock
implementations in the tests to util.go and util_address.go,
respectively, in preparation for removing the Address type and related
code.
This updates VerifyMessage to use the stdaddr package for addresses
instead of the local Address type in preparation for its removal.
This removes all code related to defining and implementing the Address
type since that is now handled by the stdaddr package.
@davecgh davecgh merged commit 1012d90 into decred:master Apr 15, 2021
@davecgh davecgh deleted the dcrutil_remove_address branch April 15, 2021 22:03
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.

None yet

3 participants