This commit is contained in:
jl777
2016-10-26 07:34:50 -03:00
parent 7eeb76e9ac
commit f38345e99b
4 changed files with 116 additions and 36 deletions

View File

@@ -2593,13 +2593,11 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend,
else
{
// Insert change txn at random position:
nChangePosRet = GetRandInt(txNew.vout.size()+1);
nChangePosRet = GetRandInt(txNew.vout.size() + 1*0); // all but last position
vector<CTxOut>::iterator position = txNew.vout.begin()+nChangePosRet;
txNew.vout.insert(position, newTxOut);
}
}
else
reservekey.ReturnKey();
} else reservekey.ReturnKey();
// Fill vin
//