| 971 | } |
| 972 | |
| 973 | void CTxMemPool::queryHashes(std::vector<uint256>& vtxid) const |
| 974 | { |
| 975 | LOCK(cs); |
| 976 | auto iters = GetSortedDepthAndScore(); |
| 977 | |
| 978 | vtxid.clear(); |
| 979 | vtxid.reserve(mapTx.size()); |
| 980 | |
| 981 | for (auto it : iters) { |
| 982 | vtxid.push_back(it->GetTx().GetHash()); |
| 983 | } |
| 984 | } |
| 985 | |
| 986 | static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) { |
| 987 | return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), it->GetFee(), it->GetTxSize(), it->GetModifiedFee() - it->GetFee(), it->GetDiscountTxSize()}; |