| 988 | } |
| 989 | |
| 990 | std::vector<TxMempoolInfo> CTxMemPool::infoAll() const |
| 991 | { |
| 992 | LOCK(cs); |
| 993 | auto iters = GetSortedDepthAndScore(); |
| 994 | |
| 995 | std::vector<TxMempoolInfo> ret; |
| 996 | ret.reserve(mapTx.size()); |
| 997 | for (auto it : iters) { |
| 998 | ret.push_back(GetInfo(it)); |
| 999 | } |
| 1000 | |
| 1001 | return ret; |
| 1002 | } |
| 1003 | |
| 1004 | CTransactionRef CTxMemPool::get(const uint256& hash) const |
| 1005 | { |