From c6488622ebeb12849072014a1f0a450b8c53aaef Mon Sep 17 00:00:00 2001 From: sowle Date: Sun, 5 May 2024 22:19:16 +0200 Subject: [PATCH] temporary fix for ZC outs validation in validate_alt_block_input() --- src/currency_core/blockchain_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 1084ee16..ba9e2b32 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -7432,7 +7432,7 @@ bool blockchain_storage::validate_alt_block_input(const transaction& input_tx, if (!alt_chain.empty()) { auto abg_it = alt_chain.back()->second.gindex_lookup_table.find(input_amount); - if (abg_it != alt_chain.back()->second.gindex_lookup_table.end()) + if (input_amount != 0 /* <-- TODO @#@# remove this condition after ZC outs support is implemented*/ && abg_it != alt_chain.back()->second.gindex_lookup_table.end()) { amount_touched_altchain = true; // local gindex lookup table contains last used gindex, so we can't get total number of outs