| 598 | } |
| 599 | |
| 600 | std::vector<TxMempoolInfo> CTxMemPool::infoAll() const |
| 601 | { |
| 602 | LOCK(cs); |
| 603 | auto iters = GetSortedScoreWithTopology(); |
| 604 | |
| 605 | std::vector<TxMempoolInfo> ret; |
| 606 | ret.reserve(mapTx.size()); |
| 607 | for (auto it : iters) { |
| 608 | ret.push_back(GetInfo(it)); |
| 609 | } |
| 610 | |
| 611 | return ret; |
| 612 | } |
| 613 | |
| 614 | const CTxMemPoolEntry* CTxMemPool::GetEntry(const Txid& txid) const |
| 615 | { |