Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Fix BitcoinCoreWallet's UTXO selection. #119

Merged
merged 1 commit into from
Jul 4, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def get_utxos_by_mixdepth(self):
for u in unspent_list:
if not u['spendable']:
continue
if self.fromaccount and 'account' in u and u['account'] != self.fromaccount:
if self.fromaccount and (('account' not in u) or u['account'] != self.fromaccount):
continue
result[0][u['txid'] + ':' + str(u['vout'])] = {'address': u['address'],
'value': int(Decimal(str(u['amount'])) * Decimal('1e8'))}
Expand Down