diff --git a/modules/net/dap_chain_ledger.c b/modules/net/dap_chain_ledger.c index 67264de681e7f43d9961a901a261016dc84a85eb..b8424b1e8664e9bd17ee14520775fd82c2c4dcbc 100644 --- a/modules/net/dap_chain_ledger.c +++ b/modules/net/dap_chain_ledger.c @@ -3300,9 +3300,10 @@ dap_hash_fast_t* dap_ledger_get_first_chain_tx_hash(dap_ledger_t *a_ledger, dap_ dap_chain_tx_out_cond_t *l_out_cond_temp = dap_chain_datum_tx_out_cond_get(l_prev_tx_temp, l_type, NULL); if (l_out_cond_temp){ l_item_idx = l_in_cond_temp->header.tx_out_prev_idx; - l_prev_tx = l_prev_tx_temp; + l_hash = l_in_cond_temp->header.tx_prev_hash; } + l_prev_tx = l_prev_tx_temp; } if(l_prev_tx && !dap_hash_fast_is_blank(&l_hash)){