Skip to content
Snippets Groups Projects
Commit 8facdf17 authored by Roman Khlopkov's avatar Roman Khlopkov 🔜
Browse files

[*] Build fix

parent 20d1c331
No related branches found
No related tags found
1 merge request!897hotfix-6925
Pipeline #17039 passed with stage
in 1 second
...@@ -411,14 +411,6 @@ static bool s_poa_round_check_callback_round_clean(dap_global_db_context_t * a_g ...@@ -411,14 +411,6 @@ static bool s_poa_round_check_callback_round_clean(dap_global_db_context_t * a_g
if (a_values_count) { if (a_values_count) {
for (size_t i = 0; i<a_values_count; i++) { for (size_t i = 0; i<a_values_count; i++) {
dap_chain_cs_dag_event_round_item_t *l_event_round_item = (dap_chain_cs_dag_event_round_item_t *)a_values[i].value; dap_chain_cs_dag_event_round_item_t *l_event_round_item = (dap_chain_cs_dag_event_round_item_t *)a_values[i].value;
<<<<<<< HEAD
if ( (dap_time_now() - l_event_round_item->round_info.ts_update) >
(l_poa_pvt->confirmations_timeout+l_poa_pvt->wait_sync_before_complete+10) ) {
dap_global_db_del_unsafe(a_global_db_context, l_gdb_group_round_new, a_values[i].key );
log_it(L_MSG, "DAG-PoA: Remove event %s from round by timer.", a_values[i].key);
} else {
l_events_count++;
=======
uint64_t l_time_diff = dap_nanotime_now() - l_event_round_item->round_info.ts_update; uint64_t l_time_diff = dap_nanotime_now() - l_event_round_item->round_info.ts_update;
uint64_t l_timeuot = dap_nanotime_from_sec(l_poa_pvt->confirmations_timeout + l_poa_pvt->wait_sync_before_complete + 10); uint64_t l_timeuot = dap_nanotime_from_sec(l_poa_pvt->confirmations_timeout + l_poa_pvt->wait_sync_before_complete + 10);
uint64_t l_round_id = ((dap_chain_cs_dag_event_t *)l_event_round_item->event_n_signs)->header.round_id; uint64_t l_round_id = ((dap_chain_cs_dag_event_t *)l_event_round_item->event_n_signs)->header.round_id;
...@@ -426,7 +418,6 @@ static bool s_poa_round_check_callback_round_clean(dap_global_db_context_t * a_g ...@@ -426,7 +418,6 @@ static bool s_poa_round_check_callback_round_clean(dap_global_db_context_t * a_g
dap_global_db_del_unsafe(a_global_db_context, a_group, a_values[i].key); dap_global_db_del_unsafe(a_global_db_context, a_group, a_values[i].key);
log_it(L_DEBUG, "DAG-PoA: Remove event %s from round %"DAP_UINT64_FORMAT_U" by timer.", log_it(L_DEBUG, "DAG-PoA: Remove event %s from round %"DAP_UINT64_FORMAT_U" by timer.",
a_values[i].key, l_round_id); a_values[i].key, l_round_id);
>>>>>>> features-6091
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment