Skip to content
Browse files

blockchain_stats: make it work on pruned blockchains

It reports the actual size as pruned, however
  • Loading branch information...
moneromooo-monero committed Nov 4, 2019
1 parent ff94771 commit 236d2a88e25f50e2249323d1dc71762f12a10364
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/blockchain_utilities/blockchain_stats.cpp
@@ -264,12 +264,12 @@ plot 'stats.csv' index "DATA" using (timecolumn(1,"%Y-%m-%d")):4 with lines, ''
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;

0 comments on commit 236d2a8

Please sign in to comment.
You can’t perform that action at this time.