-
Notifications
You must be signed in to change notification settings - Fork 90
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
[GUI][Zerocoin] transaction list - handle receive from zerocoin transactions #946
[GUI][Zerocoin] transaction list - handle receive from zerocoin transactions #946
Conversation
bool fBech32 = false; | ||
if (boost::get<CScriptID>(&wtx.txout_address[i])){ | ||
fBech32 = true; | ||
} |
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.
NIT: Can this be condensed into a single line instead of the if? say, something like
bool fBech32 = (bool)boost::get<CScriptID>(...);
or boost::get<CScriptID>(...) != ...
?
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.
That's true:
bool fBech32 = boost::get<CScriptID>(&wtx.txout_address[i])
would do the trick; but functionally it's the same and and it's not against style; so I'll say that's a NIT
Another NIT: space between the end of the if and the {
But given problems with this problem, I'm not concerned with holding it up.
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.
utACK 352d78e
bool fBech32 = false; | ||
if (boost::get<CScriptID>(&wtx.txout_address[i])){ | ||
fBech32 = true; | ||
} |
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.
That's true:
bool fBech32 = boost::get<CScriptID>(&wtx.txout_address[i])
would do the trick; but functionally it's the same and and it's not against style; so I'll say that's a NIT
Another NIT: space between the end of the if and the {
But given problems with this problem, I'm not concerned with holding it up.
utACK 352d78e |
Problem
The wallet transaction list was updated to show the correct address #898
Zerocoins sent to a bv1 address were causing the force_return error. The address format is bech32 however the decode method was trying to decode the address as bech32 = false.
Root Cause
The address format is bech32 however the decode method was trying to decode the address as bech32 = false.
Solution
Decode the address using the correct format.
Unit Testing Results