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

Method Expire

src/txmempool.cpp:875–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873}
874
875int CTxMemPool::Expire(int64_t time) {
876 LOCK(cs);
877 indexed_transaction_set::nth_index<2>::type::iterator it = mapTx.get<2>().begin();
878 setEntries toremove;
879 while (it != mapTx.get<2>().end() && it->GetTime() < time) {
880 toremove.insert(mapTx.project<0>(it));
881 it++;
882 }
883 setEntries stage;
884 BOOST_FOREACH(txiter removeit, toremove) {
885 CalculateDescendants(removeit, stage);
886 }
887 RemoveStaged(stage, false);
888 return stage.size();
889}
890
891bool CTxMemPool::addUnchecked(const uint256&hash, const CTxMemPoolEntry &entry, bool fCurrentEstimate)
892{

Callers 1

AcceptToMemoryPoolFunction · 0.80

Calls 5

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

Tested by

no test coverage detected