From 329cc6298c23fcde1d644970a479013f7daf9e72 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Tue, 6 Jun 2017 13:40:11 +0800 Subject: [PATCH] fix: mempool_no shows zero --- src/MempoolStatus.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MempoolStatus.cpp b/src/MempoolStatus.cpp index 9aeca58..bd5193a 100644 --- a/src/MempoolStatus.cpp +++ b/src/MempoolStatus.cpp @@ -193,11 +193,12 @@ MempoolStatus::read_mempool() // clear current mempool txs vector // repopulate it with each execution of read_mempool() // 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_txs = std::move(local_copy_of_mempool_txs); + return true; }