diff --git a/src/wallet.cpp b/src/wallet.cpp index 4cd8917..a68528f 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1270,8 +1270,11 @@ bool CWallet::CreateTransaction(const vector >& vecSend, // add the dust to the fee. if (newTxOut.IsDust()) { - nFeeRet += nChange; - reservekey.ReturnKey(); + // Insert change txn at random position: + vector::iterator position = wtxNew.vout.begin()+GetRandInt(wtxNew.vout.size()+1); + wtxNew.vout.insert(position, newTxOut); + // nFeeRet += nChange; + // reservekey.ReturnKey(); } else {