| 817 | } |
| 818 | |
| 819 | void CTxMemPool::queryHashes(std::vector<uint256>& vtxid) |
| 820 | { |
| 821 | LOCK(cs); |
| 822 | auto iters = GetSortedDepthAndScore(); |
| 823 | |
| 824 | vtxid.clear(); |
| 825 | vtxid.reserve(mapTx.size()); |
| 826 | |
| 827 | for (auto it : iters) { |
| 828 | vtxid.push_back(it->GetTx().GetHash()); |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) { |
| 833 | return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), CFeeRate(it->GetFee(), it->GetTxSize()), it->GetModifiedFee() - it->GetFee()}; |