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
grpc: Return more info for ValidateAddress. #2091
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,7 +141,7 @@ func (m *managedAddress) p2shScript() (uint16, []byte) { | |
s := []byte{ | ||
0: txscript.OP_HASH160, | ||
1: txscript.OP_DATA_20, | ||
22: txscript.OP_EQUALVERIFY, | ||
22: txscript.OP_EQUAL, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. afaict this is correct. It was producing non-standard scripts according to decodescript, and the value was different than what stdaddr will return. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, it is not |
||
} | ||
copy(s[2:22], sh) | ||
return 0, s | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference, udb should not be used anywhere outside of the wallet package. This is a layering violation and it's making it more difficult to convert the package to being internal (but this particular case is not as bad as say, depending on a type defined by that package).