-
Notifications
You must be signed in to change notification settings - Fork 399
Make issuance fail for invalid addresses #861
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
Make issuance fail for invalid addresses #861
Conversation
Without his change, invalid addresses are converted into fee outputs.
|
Please also review backport: #867. |
| CTxDestination token_address(DecodeDestination(token_address_str)); | ||
| CScript asset_destination = GetScriptForDestination(asset_address); | ||
| CScript token_destination = GetScriptForDestination(token_address); | ||
| CScript asset_script = GetScriptForDestination(asset_dest); |
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.
You don't need to change this now if you don't feel like it, but I think the rename makes the diff a little harder to follow, when there is also code moving and code changing. But maybe that's a dumb thing for me to say, I dunno, good names are important too.
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.
Yeah I could have cut the change into more than one commit. I'd be happy to do that. But I see you ack'ed it.
|
utACK 4256916. |
|
Looks like the test failure is a timeout, I assume you'll kick it to try again. |
8e5893e Add test to make sure issuances to wrong addresses fail (Steven Roose) 21b3913 Make issuance fail for invalid addresses (Steven Roose) Pull request description: Backport of #861. Tree-SHA512: 6ef9d50c1b63d93dd3497b38510e8628d02dd876d85b270e3ede4c68118aaf1e7cd3c73ee7f35d7b51cc7500517f3cedd4e0bf5d4de0be373a51ae008d89cf15
Fixes #853.