Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,335 Lines • ▼ Show 20 Lines | bool CWallet::CommitTransaction( | ||||
CWalletTx wtxNew(this, std::move(tx)); | CWalletTx wtxNew(this, std::move(tx)); | ||||
wtxNew.mapValue = std::move(mapValue); | wtxNew.mapValue = std::move(mapValue); | ||||
wtxNew.vOrderForm = std::move(orderForm); | wtxNew.vOrderForm = std::move(orderForm); | ||||
wtxNew.strFromAccount = std::move(fromAccount); | wtxNew.strFromAccount = std::move(fromAccount); | ||||
wtxNew.fTimeReceivedIsTxTime = true; | wtxNew.fTimeReceivedIsTxTime = true; | ||||
wtxNew.fFromMe = true; | wtxNew.fFromMe = true; | ||||
LogPrintf("CommitTransaction:\n%s", wtxNew.tx->ToString()); | LogPrintfToBeContinued("CommitTransaction:\n%s", wtxNew.tx->ToString()); | ||||
// Take key pair from key pool so it won't be used again. | // Take key pair from key pool so it won't be used again. | ||||
reservekey.KeepKey(); | reservekey.KeepKey(); | ||||
// Add tx to wallet, because if it has change it's also ours, otherwise just | // Add tx to wallet, because if it has change it's also ours, otherwise just | ||||
// for transaction history. | // for transaction history. | ||||
AddToWallet(wtxNew); | AddToWallet(wtxNew); | ||||
▲ Show 20 Lines • Show All 1,422 Lines • Show Last 20 Lines |