From 1c22ccf890597fa1bf671f60df8b1d6634141689 Mon Sep 17 00:00:00 2001
From: Roman Khlopkov <roman.khlopkov@demlabs.net>
Date: Thu, 13 Apr 2023 14:31:33 +0300
Subject: [PATCH] [*] Fix check future round validators list

---
 modules/consensus/esbocs/dap_chain_cs_esbocs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/consensus/esbocs/dap_chain_cs_esbocs.c b/modules/consensus/esbocs/dap_chain_cs_esbocs.c
index cea7524335..2db53c41ef 100644
--- a/modules/consensus/esbocs/dap_chain_cs_esbocs.c
+++ b/modules/consensus/esbocs/dap_chain_cs_esbocs.c
@@ -1342,7 +1342,7 @@ static void s_session_packet_in(void *a_arg, dap_chain_node_addr_t *a_sender_nod
                                                     l_session->cur_round.sync_attempt, l_sync_attempt);
             } else {
                 PVT(l_session->esbocs)->debug = false;  // suppress some debug messages
-                dap_list_t *l_validators_list = s_get_validators_list(l_session, l_sync_attempt);
+                dap_list_t *l_validators_list = s_get_validators_list(l_session, l_sync_attempt - 1);
                 PVT(l_session->esbocs)->debug = l_cs_debug;
                 bool l_msg_from_list = s_validator_check(&l_signing_addr, l_validators_list);
                 dap_list_free_full(l_validators_list, NULL);
-- 
GitLab