| 570 | } |
| 571 | |
| 572 | std::vector<CTxMemPool::indexed_transaction_set::const_iterator> CTxMemPool::GetSortedScoreWithTopology() const |
| 573 | { |
| 574 | std::vector<indexed_transaction_set::const_iterator> iters; |
| 575 | AssertLockHeld(cs); |
| 576 | |
| 577 | iters.reserve(mapTx.size()); |
| 578 | |
| 579 | for (indexed_transaction_set::iterator mi = mapTx.begin(); mi != mapTx.end(); ++mi) { |
| 580 | iters.push_back(mi); |
| 581 | } |
| 582 | std::sort(iters.begin(), iters.end(), [this](const auto& a, const auto& b) EXCLUSIVE_LOCKS_REQUIRED(cs) noexcept { |
| 583 | return m_txgraph->CompareMainOrder(*a, *b) < 0; |
| 584 | }); |
| 585 | return iters; |
| 586 | } |
| 587 | |
| 588 | std::vector<CTxMemPoolEntryRef> CTxMemPool::entryAll() const |
| 589 | { |
nothing calls this directly
no test coverage detected