From d54e89c912bbfb957e234063c14389815446ccb9 Mon Sep 17 00:00:00 2001
From: "oljas.jarasbaev" <oljas.jarasbaev@demlabs.net>
Date: Sat, 9 Nov 2024 17:48:47 +0700
Subject: [PATCH] [*]log

---
 modules/consensus/esbocs/dap_chain_cs_esbocs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/consensus/esbocs/dap_chain_cs_esbocs.c b/modules/consensus/esbocs/dap_chain_cs_esbocs.c
index bc94af3266..5a516e13b4 100644
--- a/modules/consensus/esbocs/dap_chain_cs_esbocs.c
+++ b/modules/consensus/esbocs/dap_chain_cs_esbocs.c
@@ -1265,8 +1265,10 @@ static int s_signs_sort_callback(dap_list_t *a_sign1, dap_list_t *a_sign2)
 static bool s_session_directive_ready(dap_chain_esbocs_session_t *a_session, bool * a_kick, dap_chain_addr_t * a_signing_addr)
 {
     size_t l_list_length = dap_list_length(a_session->cur_round.all_validators);
-    if (a_session->cur_round.total_validators_synced * 3 < l_list_length * 2)
+    if (a_session->cur_round.total_validators_synced * 3 < l_list_length * 2) {
+        log_it(L_INFO, "Not enough validator online for derictive, all_validators = %u, current = %u", l_list_length, a_session->cur_round.total_validators_synced);
         return false; // Not a valid round, less than 2/3 participants
+    }
     debug_if(PVT(a_session->esbocs)->debug, L_MSG, "Current consensus online %hu from %zu is acceptable, so issue the directive",
                                                     a_session->cur_round.total_validators_synced, l_list_length);
     dap_chain_esbocs_penalty_item_t *l_item, *l_tmp;
-- 
GitLab