| 873 | } |
| 874 | |
| 875 | int 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 | |
| 891 | bool CTxMemPool::addUnchecked(const uint256&hash, const CTxMemPoolEntry &entry, bool fCurrentEstimate) |
| 892 | { |