Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 890 Lines • ▼ Show 20 Lines | void CTxMemPool::queryHashes(std::vector<uint256> &vtxid) const { | ||||
for (auto it : iters) { | for (auto it : iters) { | ||||
vtxid.push_back(it->GetTx().GetId()); | vtxid.push_back(it->GetTx().GetId()); | ||||
} | } | ||||
} | } | ||||
static TxMempoolInfo | static TxMempoolInfo | ||||
GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) { | GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) { | ||||
return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), | return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), it->GetFee(), | ||||
CFeeRate(it->GetFee(), it->GetTxSize()), | it->GetTxSize(), it->GetModifiedFee() - it->GetFee()}; | ||||
it->GetModifiedFee() - it->GetFee()}; | |||||
} | } | ||||
std::vector<TxMempoolInfo> CTxMemPool::infoAll() const { | std::vector<TxMempoolInfo> CTxMemPool::infoAll() const { | ||||
LOCK(cs); | LOCK(cs); | ||||
auto iters = GetSortedDepthAndScore(); | auto iters = GetSortedDepthAndScore(); | ||||
std::vector<TxMempoolInfo> ret; | std::vector<TxMempoolInfo> ret; | ||||
ret.reserve(mapTx.size()); | ret.reserve(mapTx.size()); | ||||
▲ Show 20 Lines • Show All 518 Lines • Show Last 20 Lines |