1
0
Fork 0
forked from lthn/blockchain

temporary fix for ZC outs validation in validate_alt_block_input()

This commit is contained in:
sowle 2024-05-05 22:19:16 +02:00
parent e40d9df2ec
commit c6488622eb
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

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