MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / TryAddToMempool

Function TryAddToMempool

src/test/util/txmempool.cpp:215–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void TryAddToMempool(CTxMemPool& tx_pool, const CTxMemPoolEntry& entry)
216{
217 LOCK2(cs_main, tx_pool.cs);
218 auto changeset = tx_pool.GetChangeSet();
219 changeset->StageAddition(entry.GetSharedTx(), entry.GetFee(),
220 entry.GetTime().count(), entry.GetHeight(), entry.GetSequence(),
221 entry.GetSpendsCoinbase(), entry.GetSigOpCost(), entry.GetLockPoints());
222 if (changeset->CheckMemPoolPolicyLimits()) changeset->Apply();
223}
224
225void MockMempoolMinFee(const CFeeRate& target_feerate, CTxMemPool& mempool)
226{

Callers 15

BOOST_AUTO_TEST_CASEFunction · 0.85
rbf_tests.cppFile · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
TestPackageSelectionMethod · 0.85
TestBasicMiningMethod · 0.85
TestPrioritisedMiningMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
rbf.cppFile · 0.85

Calls 11

StageAdditionMethod · 0.80
GetSharedTxMethod · 0.80
countMethod · 0.80
GetTimeMethod · 0.80
GetSpendsCoinbaseMethod · 0.80
GetSigOpCostMethod · 0.80
GetFeeMethod · 0.45
GetHeightMethod · 0.45
GetSequenceMethod · 0.45
ApplyMethod · 0.45

Tested by

no test coverage detected