-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Conversation
7e7739a
to
1386706
Compare
4e2bd86
to
928eba3
Compare
@ecdsa Rebased. |
electrum/commands.py
Outdated
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)]) |
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.
The list()
cast looks redundant. Are you trying to make a copy?
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)] |
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.
Good point. Not sure why I was casting there. Removed it.
|
Otherwise I've tested and it works as expected. :) |
928eba3
to
7b91cd9
Compare
@SomberNight Fixed merge conflict. |
Thanks |
Fixes #5430