Merge pull request #6094

236d2a88 blockchain_stats: make it work on pruned blockchains (moneromooo-monero)
This commit is contained in:
Alexander Blair 2020-02-06 00:30:47 -08:00
commit 78d4d5ab79
No known key found for this signature in database
GPG Key ID: C64552D877C32479
1 changed files with 2 additions and 2 deletions

View File

@ -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;