From 57e7be52ed6b7ff66d8c2ccd772bccedc4a120a9 Mon Sep 17 00:00:00 2001 From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net> Date: Tue, 8 Dec 2020 21:55:41 +0700 Subject: [PATCH] [*] Fixed deadlock with tokens list --- CMakeLists.txt | 2 +- modules/chain/dap_chain_ledger.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e9bd57964..65c32e2699 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ project(cellframe-sdk C) cmake_minimum_required(VERSION 2.8) set(CMAKE_C_STANDARD 11) -set(CELLFRAME_SDK_NATIVE_VERSION "2.6-77") +set(CELLFRAME_SDK_NATIVE_VERSION "2.6-78") add_definitions ("-DCELLFRAME_SDK_VERSION=\"${CELLFRAME_SDK_NATIVE_VERSION}\"") set(DAPSDK_MODULES "") diff --git a/modules/chain/dap_chain_ledger.c b/modules/chain/dap_chain_ledger.c index ca477cdfb5..0dd03d17f8 100644 --- a/modules/chain/dap_chain_ledger.c +++ b/modules/chain/dap_chain_ledger.c @@ -1777,8 +1777,11 @@ int dap_chain_ledger_tx_cache_check(dap_ledger_t *a_ledger, dap_chain_datum_tx_t break; } } + pthread_rwlock_unlock(&l_ledger_priv->tokens_rwlock); } + + if ( l_list_out ) dap_list_free(l_list_out); -- GitLab