Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,757 Lines • ▼ Show 20 Lines | if (g_mempool.exists(tx->GetId())) { | ||||
return false; | return false; | ||||
} | } | ||||
// 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, | ||||
GetConfig(), g_mempool, state, tx, true /* fLimitFree */, | nullptr /* pfMissingInputs */, | ||||
nullptr /* pfMissingInputs */, false /* fOverrideMempoolLimit */, | false /* bypass_limits */, nAbsurdFee); | ||||
nAbsurdFee); | |||||
fInMempool = ret; | fInMempool = ret; | ||||
return ret; | return ret; | ||||
} | } | ||||
static const std::string OUTPUT_TYPE_STRING_LEGACY = "legacy"; | static const std::string OUTPUT_TYPE_STRING_LEGACY = "legacy"; | ||||
OutputType ParseOutputType(const std::string &type, OutputType default_type) { | OutputType ParseOutputType(const std::string &type, OutputType default_type) { | ||||
if (type.empty()) { | if (type.empty()) { | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |