Skip to content

Conversation

@stevenroose
Copy link
Contributor

Fixes #853.

Without his change, invalid addresses are converted into fee outputs.
@stevenroose stevenroose changed the title Issuance invalid addr Make issuance fail for invalid addresses Apr 14, 2020
@stevenroose
Copy link
Contributor Author

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);
Copy link
Contributor

@gwillen gwillen Apr 16, 2020

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.

Copy link
Contributor Author

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.

@gwillen
Copy link
Contributor

gwillen commented Apr 16, 2020

utACK 4256916.

@gwillen
Copy link
Contributor

gwillen commented Apr 16, 2020

Looks like the test failure is a timeout, I assume you'll kick it to try again.

@stevenroose stevenroose merged commit f0d97cd into ElementsProject:master Apr 16, 2020
stevenroose added a commit that referenced this pull request Apr 16, 2020
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
stevenroose pushed a commit that referenced this pull request Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rawissueasset with invalid address results in fee outputs

2 participants