diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-04 15:08:41 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-04 15:10:01 +0000 |
commit | 236d2a88e25f50e2249323d1dc71762f12a10364 (patch) | |
tree | ef4ecd808099ecdb2961db6d393ef26c795f5606 /src | |
parent | Merge pull request #6087 (diff) | |
download | monero-236d2a88e25f50e2249323d1dc71762f12a10364.tar.xz |
blockchain_stats: make it work on pruned blockchains
It reports the actual size as pruned, however
Diffstat (limited to 'src')
-rw-r--r-- | src/blockchain_utilities/blockchain_stats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/blockchain_stats.cpp b/src/blockchain_utilities/blockchain_stats.cpp index 2f66d54aa..0d18b8819 100644 --- a/src/blockchain_utilities/blockchain_stats.cpp +++ b/src/blockchain_utilities/blockchain_stats.cpp @@ -264,12 +264,12 @@ skip: { throw std::runtime_error("Aborting: tx == null_hash"); } - if (!db->get_tx_blob(tx_id, bd)) + if (!db->get_pruned_tx_blob(tx_id, bd)) { throw std::runtime_error("Aborting: tx not found"); } transaction tx; - if (!parse_and_validate_tx_from_blob(bd, tx)) + if (!parse_and_validate_tx_base_from_blob(bd, tx)) { LOG_PRINT_L0("Bad txn from db"); return 1; |