Skip to content

Remove xpubAddress type and stakeAddress interface.#2561

Closed
jholdstock wants to merge 2 commits intodecred:masterfrom
jholdstock:rmaccnm2
Closed

Remove xpubAddress type and stakeAddress interface.#2561
jholdstock wants to merge 2 commits intodecred:masterfrom
jholdstock:rmaccnm2

Conversation

@jholdstock
Copy link
Copy Markdown
Member

This is an alternative to #2537.

This PR does away with xPubAddress completely. I appreciate that the original goal was to return a more useful type to the caller, but given that the additional functionality is not actually used by any callers, I don't see the extra cruft it introduces to be worthwhile. Its quite a lot of duplicated/untested code to maintain "just in case" its useful in future.

All of the functionality provided by wrapping addresses in xpubAddress is either available in dcrd or it is unused.

This also enables the removal of some unsafe unnecessary type conversion, and removes the need to pass around blank/dummy account names.

All of the functionality provided by wrapping addresses in xpubAddress
is either available in dcrd or it is unused.

This also enables the removal of some unsafe unnecessary type
conversion, and removes the need to pass around blank/dummy account
names.
@jrick
Copy link
Copy Markdown
Member

jrick commented Nov 3, 2025

@jholdstock
Copy link
Copy Markdown
Member Author

Damn ok, I had no idea that was still active or maintained, I thought it was just an abadoned leftover from an old mobile wallet project.

@jholdstock jholdstock closed this Nov 7, 2025
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.

2 participants