MCPcopy Create free account
hub / github.com/ElementsProject/elements / FlushUnconfirmed

Method FlushUnconfirmed

src/policy/fees.cpp:993–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991}
992
993void CBlockPolicyEstimator::FlushUnconfirmed() {
994 int64_t startclear = GetTimeMicros();
995 LOCK(m_cs_fee_estimator);
996 size_t num_entries = mapMemPoolTxs.size();
997 // Remove every entry in mapMemPoolTxs
998 while (!mapMemPoolTxs.empty()) {
999 auto mi = mapMemPoolTxs.begin();
1000 _removeTx(mi->first, false); // this calls erase() on mapMemPoolTxs
1001 }
1002 int64_t endclear = GetTimeMicros();
1003 LogPrint(BCLog::ESTIMATEFEE, "Recorded %u unconfirmed txs from mempool in %gs\n", num_entries, (endclear - startclear)*0.000001);
1004}
1005
1006FeeFilterRounder::FeeFilterRounder(const CFeeRate& minIncrementalFee)
1007{

Callers 1

FUZZ_TARGET_INITFunction · 0.80

Calls 4

GetTimeMicrosFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.64