| 834 | } |
| 835 | |
| 836 | std::vector<TxMempoolInfo> CTxMemPool::infoAll() const |
| 837 | { |
| 838 | LOCK(cs); |
| 839 | auto iters = GetSortedDepthAndScore(); |
| 840 | |
| 841 | std::vector<TxMempoolInfo> ret; |
| 842 | ret.reserve(mapTx.size()); |
| 843 | for (auto it : iters) { |
| 844 | ret.push_back(GetInfo(it)); |
| 845 | } |
| 846 | |
| 847 | return ret; |
| 848 | } |
| 849 | |
| 850 | CTransactionRef CTxMemPool::get(const uint256& hash) const |
| 851 | { |