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

Conversation

domob1812
Copy link
Contributor

The UTXO selection of BitcoinCoreWallet with fromaccount set did accept also UTXO's without an account. This is in direct contradiction to the user's wish for a specific account. With this patch, we really only accept UTXO's that have the specified account set explicitly.

The UTXO selection of BitcoinCoreWallet with fromaccount set did accept
also UTXO's without an account.  This is in direct contradiction to the
user's wish for a specific account.  With this patch, we really only
accept UTXO's that have the specified account set explicitly.
@chris-belcher
Copy link
Collaborator

Good fix.

@haarts
Copy link
Contributor

haarts commented Jul 2, 2015

I have a hard time following what is being checked for. Is it an idea to extract the right hand side of the if statement into a predicate method?

if self.fromaccount and isSomeSaneName(u):
    continue
...

@chris-belcher
Copy link
Collaborator

This code is meant to allow the user to choose which bitcoin core account to spend from, see https://bitcoin.org/en/developer-reference#listunspent

chris-belcher added a commit that referenced this pull request Jul 4, 2015
Fix BitcoinCoreWallet's UTXO selection.
@chris-belcher chris-belcher merged commit 764768e into JoinMarket-Org:master Jul 4, 2015
ghtdak pushed a commit to ghtdak/joinmarket that referenced this pull request Oct 1, 2015
…om [yapf]

Fix BitcoinCoreWallet's UTXO selection.
ghtdak pushed a commit to ghtdak/joinmarket that referenced this pull request Oct 4, 2015
ghtdak pushed a commit to ghtdak/joinmarket that referenced this pull request Dec 4, 2015
Fix BitcoinCoreWallet's UTXO selection.
[gitreformat yapf-ify (github/ghtdak) on Fri Dec  4 04:49:33 2015]
[from commit: 764768e]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants