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

Sort accounts internally by their account number. #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrick
Copy link
Member

@jrick jrick commented Apr 12, 2016

When enumerated, accounts are now returned in increasing order by
their account number.

Fixes #23.

When enumerated, accounts are now returned in increasing order by
their account number.

Fixes btcsuite#23.
@marcopeereboom
Copy link

I really don't like this at all. If want to sort accounts we should do it by account name. Account number is internal to the app and honestly I don't even think we should display it.

@jrick
Copy link
Member Author

jrick commented Jul 13, 2016

This had to do with the internal ordering of accounts, not necessarily what is presented in the view. It was needed for consistency and efficiency. This is the Bitcoin repo, but the Decred Paymetheus already contains this change. I disagree that account numbers should be invisible to the user, since they determine what keys are derived from the seed and it allows for some additional compatibility with other BIP0044 wallets or key derivation tools.

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