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

Need representation of "Invalid" value of wallet.CoinType #50

Open
placer14 opened this issue Dec 14, 2018 · 0 comments
Open

Need representation of "Invalid" value of wallet.CoinType #50

placer14 opened this issue Dec 14, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@placer14
Copy link
Member

placer14 commented Dec 14, 2018

Would be nice for there to be a sentinel value representing an "Invalid" or zero/unset state of wallet.CoinType. We are unable to rely on 0 since that is the definition of wallet.Bitcoin. We currently refer to an "Invalid" type in github.com/OpenBazaar/openbazaar-go/wallet/builder.go as 4294967295 (or the maximum for a uint32, which could also be ^uint(0)) and would be happy to see that made into a formal constant for referencing an unknown or unset type.

@placer14 placer14 added the enhancement New feature or request label Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant