Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,807 Lines • ▼ Show 20 Lines | |||||
bool CWalletTx::AcceptToMemoryPool(const Amount nAbsurdFee, | bool CWalletTx::AcceptToMemoryPool(const Amount nAbsurdFee, | ||||
CValidationState &state) { | CValidationState &state) { | ||||
// We must set fInMempool here - while it will be re-set to true by the | // We must set fInMempool here - while it will be re-set to true by the | ||||
// entered-mempool callback, if we did not there would be a race where a | // entered-mempool callback, if we did not there would be a race where a | ||||
// user could call sendmoney in a loop and hit spurious out of funds errors | // user could call sendmoney in a loop and hit spurious out of funds errors | ||||
// because we think that this newly generated transaction's change is | // because we think that this newly generated transaction's change is | ||||
// unavailable as we're not yet aware that it is in the mempool. | // unavailable as we're not yet aware that it is in the mempool. | ||||
bool ret = ::AcceptToMemoryPool( | bool ret = ::AcceptToMemoryPool( | ||||
GetConfig(), g_mempool, state, tx, true /* fLimitFree */, | GetConfig(), g_mempool, state, tx, nullptr /* pfMissingInputs */, | ||||
nullptr /* pfMissingInputs */, false /* fOverrideMempoolLimit */, | false /* fOverrideMempoolLimit */, nAbsurdFee); | ||||
nAbsurdFee); | |||||
fInMempool |= ret; | fInMempool |= ret; | ||||
return ret; | return ret; | ||||
} | } | ||||
void CWallet::LearnRelatedScripts(const CPubKey &key, OutputType type) { | void CWallet::LearnRelatedScripts(const CPubKey &key, OutputType type) { | ||||
// Nothing to do... | // Nothing to do... | ||||
} | } | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |