Skip to content

dcrutil: Remove all code related to Address.#2628

Merged
davecgh merged 3 commits into
decred:masterfrom
davecgh:dcrutil_remove_address
Apr 15, 2021
Merged

dcrutil: Remove all code related to Address.#2628
davecgh merged 3 commits into
decred:masterfrom
davecgh:dcrutil_remove_address

Conversation

@davecgh
Copy link
Copy Markdown
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 from cc423a5 to 7fa6137 Compare March 17, 2021 08:05
@davecgh davecgh force-pushed the dcrutil_remove_address branch from 7fa6137 to 1e287f0 Compare March 30, 2021 07:09
@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
Copy Markdown
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
Copy Markdown
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.

🎉 🎉

davecgh added 3 commits April 15, 2021 16:51
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 force-pushed the dcrutil_remove_address branch from eab478c to 1012d90 Compare April 15, 2021 21:59
@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.

3 participants