From edd7eaca957ddb143975ff36f3bd07791de355a4 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Mon, 27 Jun 2022 19:22:43 +0200 Subject: [PATCH] fixed compilation issue with print_tx_prun_info --- src/daemon/daemon_commands_handler.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/daemon/daemon_commands_handler.h b/src/daemon/daemon_commands_handler.h index ac7de2c8..7e395584 100644 --- a/src/daemon/daemon_commands_handler.h +++ b/src/daemon/daemon_commands_handler.h @@ -663,16 +663,9 @@ private: auto ptx = bcs.get_tx(h); CHECK_AND_ASSERT_MES(ptx != nullptr, false, "failed to find transaction " << h << " in blockchain index, in block on height = " << height); - VARIANT_SWITCH_BEGIN(ptx->signature); - VARIANT_CASE(currency::NLSAG_sig, nlsag) - { - if (nlsag.s.size() == 0) - pruned_txs += 1; - signatures += nlsag.s.size(); - } - VARIANT_CASE(currency::zarcanum_sig, zs); - // @#@ - VARIANT_SWITCH_END(); + if (ptx->signatures.size() == 0) + pruned_txs += 1; + signatures += ptx->signatures.size(); txs += 1; attachments += ptx->attachment.size();