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

GetNewAddress uses hardcoded network value #1466

Closed
JFixby opened this issue Sep 6, 2019 · 6 comments · Fixed by #1467
Closed

GetNewAddress uses hardcoded network value #1466

JFixby opened this issue Sep 6, 2019 · 6 comments · Fixed by #1467

Comments

@JFixby
Copy link

JFixby commented Sep 6, 2019

Bug line:

return btcutil.DecodeAddress(addr, &chaincfg.MainNetParams)

@tylerchambers
Copy link
Contributor

Can you provide a bit more context? Are you referring to MainNetParams?

@JFixby
Copy link
Author

JFixby commented Sep 7, 2019

Because of this line GetNewAddress returns unknown address type-error on any network other than MainNet.

@JFixby
Copy link
Author

JFixby commented Sep 7, 2019

Very much the whole wallet.go-file is corrupted with the same hardcoded network values. There are 6 occurrences of the &chaincfg.MainNetParams

@JFixby
Copy link
Author

JFixby commented Sep 7, 2019

@Rjected
Copy link
Contributor

Rjected commented Sep 7, 2019

Added a simple fix in #1467

@nikooo777
Copy link

As a consequence of this bug being introduced sometime in April I can't use this library on Bitcoin forks such as LBRY.

Could this please be addressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants