Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 5,640 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
bool DumpMempool(void) { | bool DumpMempool(void) { | ||||
int64_t start = GetTimeMicros(); | int64_t start = GetTimeMicros(); | ||||
std::map<uint256, Amount> mapDeltas; | std::map<uint256, Amount> mapDeltas; | ||||
std::vector<TxMempoolInfo> vinfo; | std::vector<TxMempoolInfo> vinfo; | ||||
static Mutex dump_mutex; | |||||
LOCK(dump_mutex); | |||||
{ | { | ||||
LOCK(g_mempool.cs); | LOCK(g_mempool.cs); | ||||
for (const auto &i : g_mempool.mapDeltas) { | for (const auto &i : g_mempool.mapDeltas) { | ||||
mapDeltas[i.first] = i.second.second; | mapDeltas[i.first] = i.second.second; | ||||
} | } | ||||
vinfo = g_mempool.infoAll(); | vinfo = g_mempool.infoAll(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |