| 778 | } |
| 779 | |
| 780 | void CTxMemPool::queryHashes(std::vector<uint256>& vtxid) |
| 781 | { |
| 782 | LOCK(cs); |
| 783 | auto iters = GetSortedDepthAndScore(); |
| 784 | |
| 785 | vtxid.clear(); |
| 786 | vtxid.reserve(mapTx.size()); |
| 787 | |
| 788 | for (auto it : iters) { |
| 789 | vtxid.push_back(it->GetTx().GetHash()); |
| 790 | } |
| 791 | } |
| 792 | |
| 793 | static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) { |
| 794 | return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), CFeeRate(it->GetFee(), it->GetTxSize()), it->GetModifiedFee() - it->GetFee()}; |