From 167e4f0144ce26dd80356d0eb94a2ddfab5ed820 Mon Sep 17 00:00:00 2001
From: "daniil.frolov" <daniil.frolov@demlabs.net>
Date: Mon, 1 Apr 2024 18:31:12 +0700
Subject: [PATCH] ..

---
 modules/net/dap_chain_ledger.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/net/dap_chain_ledger.c b/modules/net/dap_chain_ledger.c
index 67264de681..b8424b1e86 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)){
-- 
GitLab