Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,028 Lines • ▼ Show 20 Lines | assert(txNew.nLockTime < LOCKTIME_THRESHOLD); | ||||
} | } | ||||
std::vector<CTxOut>::iterator position = | std::vector<CTxOut>::iterator position = | ||||
txNew.vout.begin() + nChangePosInOut; | txNew.vout.begin() + nChangePosInOut; | ||||
txNew.vout.insert(position, newTxOut); | txNew.vout.insert(position, newTxOut); | ||||
} | } | ||||
} else { | } else { | ||||
reservekey.ReturnKey(); | reservekey.ReturnKey(); | ||||
nChangePosInOut = -1; | |||||
} | } | ||||
// Fill vin | // Fill vin | ||||
// | // | ||||
// Note how the sequence number is set to non-maxint so that the | // Note how the sequence number is set to non-maxint so that the | ||||
// nLockTime set above actually works. | // nLockTime set above actually works. | ||||
for (const auto &coin : setCoins) { | for (const auto &coin : setCoins) { | ||||
txNew.vin.push_back( | txNew.vin.push_back( | ||||
▲ Show 20 Lines • Show All 1,370 Lines • Show Last 20 Lines |