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

Method Expire

src/txmempool.cpp:811–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809}
810
811int CTxMemPool::Expire(std::chrono::seconds time)
812{
813 AssertLockHeld(cs);
814 Assume(!m_have_changeset);
815 indexed_transaction_set::index<entry_time>::type::iterator it = mapTx.get<entry_time>().begin();
816 setEntries toremove;
817 while (it != mapTx.get<entry_time>().end() && it->GetTime() < time) {
818 toremove.insert(mapTx.project<0>(it));
819 it++;
820 }
821 setEntries stage;
822 for (txiter removeit : toremove) {
823 CalculateDescendants(removeit, stage);
824 }
825 RemoveStaged(stage, MemPoolRemovalReason::EXPIRY);
826 return stage.size();
827}
828
829CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
830 LOCK(cs);

Callers 2

validation.cppFile · 0.80
FinishFunction · 0.80

Calls 5

GetTimeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
sizeMethod · 0.45

Tested by 1

FinishFunction · 0.64