Skip to content

Commit

Permalink
Merge pull request JoinMarket-Org#119 from domob1812/fix-rpcwallet-from
Browse files Browse the repository at this point in the history
Fix BitcoinCoreWallet's UTXO selection.
  • Loading branch information
chris-belcher committed Jul 4, 2015
2 parents 5b9d842 + 0ed7345 commit 4454ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ 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'],
Expand Down

0 comments on commit 4454ee2

Please sign in to comment.