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

Add from_coins arg to payto/paytomany #5432

Merged
merged 1 commit into from
Sep 21, 2019

Conversation

JeremyRand
Copy link
Contributor

Fixes #5430

@JeremyRand
Copy link
Contributor Author

@ecdsa Rebased.

coins = wallet.get_spendable_coins(domain, self.config)
coins = wallet.get_spendable_coins(domain_addr, self.config)
if domain_coins is not None:
coins = list([coin for coin in coins if (coin['prevout_hash'] + ':' + str(coin['prevout_n']) in domain_coins)])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The list() cast looks redundant. Are you trying to make a copy?

Suggested change
coins = list([coin for coin in coins if (coin['prevout_hash'] + ':' + str(coin['prevout_n']) in domain_coins)])
coins = [coin for coin in coins if (coin['prevout_hash'] + ':' + str(coin['prevout_n']) in domain_coins)]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Not sure why I was casting there. Removed it.

@SomberNight
Copy link
Member

_mktx was broken on master... (a1d7d39)
Could you please rebase again?

@SomberNight
Copy link
Member

Otherwise I've tested and it works as expected. :)

@JeremyRand
Copy link
Contributor Author

Could you please rebase again?

@SomberNight Fixed merge conflict.

@SomberNight SomberNight merged commit f0d69d1 into spesmilo:master Sep 21, 2019
@SomberNight
Copy link
Member

Thanks

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

Successfully merging this pull request may close these issues.

payto should support coin selection
2 participants