Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 2,819 Lines • ▼ Show 20 Lines | if (!CreateTransaction(vecSend, tx_new, reservekey, nFeeRet, | ||||
nChangePosInOut, strFailReason, coinControl, | nChangePosInOut, strFailReason, coinControl, | ||||
false)) { | false)) { | ||||
return false; | return false; | ||||
} | } | ||||
if (nChangePosInOut != -1) { | if (nChangePosInOut != -1) { | ||||
tx.vout.insert(tx.vout.begin() + nChangePosInOut, | tx.vout.insert(tx.vout.begin() + nChangePosInOut, | ||||
tx_new->vout[nChangePosInOut]); | tx_new->vout[nChangePosInOut]); | ||||
// we dont have the normal Create/Commit cycle, and dont want to | // We dont have the normal Create/Commit cycle, and dont want to | ||||
// risk reusing change, so just remove the key from the keypool | // risk reusing change, so just remove the key from the keypool | ||||
// here. | // here. | ||||
if (!IsDeprecatedRPCEnabled(gArgs, "fundrawtransaction")) { | if (!IsDeprecatedRPCEnabled(gArgs, "fundrawtransaction")) { | ||||
reservekey.KeepKey(); | reservekey.KeepKey(); | ||||
} | } | ||||
} | } | ||||
// Copy output sizes from new transaction; they may have had the fee | // Copy output sizes from new transaction; they may have had the fee | ||||
▲ Show 20 Lines • Show All 1,740 Lines • Show Last 20 Lines |