mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 21:57:46 +00:00
blockchain_stats: make it work on pruned blockchains
It reports the actual size as pruned, however
This commit is contained in:
parent
ff94771b47
commit
236d2a88e2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue