Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 1,114 Lines • ▼ Show 20 Lines | bool AcceptToMemoryPool(const Config &config, CTxMemPool &pool, | ||||
CValidationState &state, const CTransactionRef &tx, | CValidationState &state, const CTransactionRef &tx, | ||||
bool fLimitFree, bool *pfMissingInputs, | bool fLimitFree, bool *pfMissingInputs, | ||||
bool fOverrideMempoolLimit, const Amount nAbsurdFee) { | bool fOverrideMempoolLimit, const Amount nAbsurdFee) { | ||||
return AcceptToMemoryPoolWithTime(config, pool, state, tx, fLimitFree, | return AcceptToMemoryPoolWithTime(config, pool, state, tx, fLimitFree, | ||||
pfMissingInputs, GetTime(), | pfMissingInputs, GetTime(), | ||||
fOverrideMempoolLimit, nAbsurdFee); | fOverrideMempoolLimit, nAbsurdFee); | ||||
} | } | ||||
/** Return transaction in txOut, and if it was found inside a block, its hash is | /** | ||||
* placed in hashBlock */ | * Return transaction in txOut, and if it was found inside a block, its hash is | ||||
bool GetTransaction(const Config &config, const uint256 &txid, | * placed in hashBlock. | ||||
*/ | |||||
bool GetTransaction(const Config &config, const TxId &txid, | |||||
CTransactionRef &txOut, uint256 &hashBlock, | CTransactionRef &txOut, uint256 &hashBlock, | ||||
bool fAllowSlow) { | bool fAllowSlow) { | ||||
CBlockIndex *pindexSlow = nullptr; | CBlockIndex *pindexSlow = nullptr; | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
CTransactionRef ptx = mempool.get(txid); | CTransactionRef ptx = mempool.get(txid); | ||||
if (ptx) { | if (ptx) { | ||||
▲ Show 20 Lines • Show All 4,321 Lines • Show Last 20 Lines |