Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
fb29af13
Commit
fb29af13
authored
1 year ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Patches
Plain Diff
[*] Directives debug
parent
f46e27fc
No related branches found
No related tags found
No related merge requests found
Pipeline
#27947
passed with stage
Stage: build
in 10 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/consensus/esbocs/dap_chain_cs_esbocs.c
+3
-4
3 additions, 4 deletions
modules/consensus/esbocs/dap_chain_cs_esbocs.c
with
3 additions
and
4 deletions
modules/consensus/esbocs/dap_chain_cs_esbocs.c
+
3
−
4
View file @
fb29af13
...
@@ -607,9 +607,6 @@ static bool s_session_send_startsync_on_timer(void *a_arg)
...
@@ -607,9 +607,6 @@ static bool s_session_send_startsync_on_timer(void *a_arg)
static
void
s_session_update_penalty
(
dap_chain_esbocs_session_t
*
a_session
)
static
void
s_session_update_penalty
(
dap_chain_esbocs_session_t
*
a_session
)
{
{
//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)
// return; // Not a valid round, less than 2/3 participants
for
(
dap_list_t
*
it
=
a_session
->
cur_round
.
all_validators
;
it
;
it
=
it
->
next
)
{
for
(
dap_list_t
*
it
=
a_session
->
cur_round
.
all_validators
;
it
;
it
=
it
->
next
)
{
if
(((
dap_chain_esbocs_validator_t
*
)
it
->
data
)
->
is_synced
)
if
(((
dap_chain_esbocs_validator_t
*
)
it
->
data
)
->
is_synced
)
continue
;
// Penalty for non synced participants only
continue
;
// Penalty for non synced participants only
...
@@ -813,6 +810,9 @@ static int s_signs_sort_callback(const void *a_sign1, const void *a_sign2, UNUSE
...
@@ -813,6 +810,9 @@ static int s_signs_sort_callback(const void *a_sign1, const void *a_sign2, UNUSE
dap_chain_esbocs_directive_t
*
s_session_directive_ready
(
dap_chain_esbocs_session_t
*
a_session
)
dap_chain_esbocs_directive_t
*
s_session_directive_ready
(
dap_chain_esbocs_session_t
*
a_session
)
{
{
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
)
return
NULL
;
// Not a valid round, less than 2/3 participants
bool
l_kick
=
false
;
bool
l_kick
=
false
;
dap_chain_esbocs_penalty_item_t
*
l_item
,
*
l_tmp
;
dap_chain_esbocs_penalty_item_t
*
l_item
,
*
l_tmp
;
HASH_ITER
(
hh
,
a_session
->
penalty
,
l_item
,
l_tmp
)
{
HASH_ITER
(
hh
,
a_session
->
penalty
,
l_item
,
l_tmp
)
{
...
@@ -1804,7 +1804,6 @@ static void s_session_packet_in(void *a_arg, dap_chain_node_addr_t *a_sender_nod
...
@@ -1804,7 +1804,6 @@ static void s_session_packet_in(void *a_arg, dap_chain_node_addr_t *a_sender_nod
s_session_round_new
(
l_session
);
s_session_round_new
(
l_session
);
}
}
}
}
break
;
}
else
// Send it immediatly, if was not sent yet
}
else
// Send it immediatly, if was not sent yet
s_session_send_startsync
(
l_session
);
s_session_send_startsync
(
l_session
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment