fix: mempool_no shows zero

master
moneroexamples 8 years ago
parent e6b6666738
commit 329cc6298c

@ -193,11 +193,12 @@ MempoolStatus::read_mempool()
// clear current mempool txs vector // clear current mempool txs vector
// repopulate it with each execution of read_mempool() // repopulate it with each execution of read_mempool()
// not very efficient but good enough for now. // not very efficient but good enough for now.
mempool_txs = std::move(local_copy_of_mempool_txs);
mempool_no = local_copy_of_mempool_txs.size(); mempool_no = local_copy_of_mempool_txs.size();
mempool_size = mempool_size_kB; mempool_size = mempool_size_kB;
mempool_txs = std::move(local_copy_of_mempool_txs);
return true; return true;
} }

Loading…
Cancel
Save