Auto merge of #2620 - bitcartel:2583_watch_only_fspendable, r=str4d

Closes #2583. Exclude watch-only utxos from coin selection.
This commit is contained in:
Homu
2017-09-20 04:49:48 -07:00
2 changed files with 29 additions and 2 deletions

View File

@@ -803,6 +803,10 @@ bool AsyncRPCOperation_sendmany::find_utxos(bool fAcceptCoinbase=false) {
pwalletMain->AvailableCoins(vecOutputs, false, NULL, true, fAcceptCoinbase);
BOOST_FOREACH(const COutput& out, vecOutputs) {
if (!out.fSpendable) {
continue;
}
if (out.nDepth < mindepth_) {
continue;
}