aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2020-08-01 13:40:50 +0100
committerHoward Chu <hyc@symas.com>2020-08-01 17:14:29 +0100
commit2f481da90096bc5979f70e77a999489028ee8613 (patch)
treeae7ac809db6fc6d9745aebebd2b952dbfa816cec
parentMerge pull request #6729 (diff)
downloadmonero-2f481da90096bc5979f70e77a999489028ee8613.tar.xz
Don't forget size of prunable txn part
Fixes #6732
-rw-r--r--src/blockchain_utilities/blockchain_stats.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blockchain_utilities/blockchain_stats.cpp b/src/blockchain_utilities/blockchain_stats.cpp
index 0d18b8819..0331af6f2 100644
--- a/src/blockchain_utilities/blockchain_stats.cpp
+++ b/src/blockchain_utilities/blockchain_stats.cpp
@@ -275,6 +275,8 @@ skip:
return 1;
}
currsz += bd.size();
+ if (db->get_prunable_tx_blob(tx_id, bd))
+ currsz += bd.size();
currtxs++;
if (do_hours)
txhr[currtm.tm_hour]++;