Closes #2583. Exclude watch-only utxos from z_sendmany coin selection.

This commit is contained in:
Simon
2017-09-19 19:05:35 -07:00
parent 446c49b047
commit b17e1b4080
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;
}