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
18
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
4cb788cc
Commit
4cb788cc
authored
8 months ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Patches
Plain Diff
[*] Indefinite cycle fix for srv_stake check
parent
7cb1ee4e
No related branches found
No related tags found
No related merge requests found
Pipeline
#41386
passed with stage
in 9 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap-sdk
+1
-1
1 addition, 1 deletion
dap-sdk
modules/channel/chain-net/dap_stream_ch_chain_net.c
+10
-8
10 additions, 8 deletions
modules/channel/chain-net/dap_stream_ch_chain_net.c
with
11 additions
and
9 deletions
dap-sdk
@
fdefb037
Compare
fef9c1e0
...
fdefb037
Subproject commit fef
9c1e0ed18345ba26aa8ffe610cc83a55899f2
Subproject commit f
d
ef
b03790230a0ae3852ccefc5d363a495b0d26
This diff is collapsed.
Click to expand it.
modules/channel/chain-net/dap_stream_ch_chain_net.c
+
10
−
8
View file @
4cb788cc
...
@@ -250,14 +250,16 @@ static bool s_stream_ch_packet_in(dap_stream_ch_t *a_ch, void* a_arg)
...
@@ -250,14 +250,16 @@ static bool s_stream_ch_packet_in(dap_stream_ch_t *a_ch, void* a_arg)
//strncpy(send->header.data,(uint8_t*)l_ch_chain_net_pkt->data,10);
//strncpy(send->header.data,(uint8_t*)l_ch_chain_net_pkt->data,10);
flags
=
(
l_net
->
pub
.
mempool_autoproc
)
?
flags
|
A_PROC
:
flags
&
~
A_PROC
;
flags
=
(
l_net
->
pub
.
mempool_autoproc
)
?
flags
|
A_PROC
:
flags
&
~
A_PROC
;
if
(
dap_chain_net_srv_order_find_all_by
(
l_net
,
SERV_DIR_UNDEFINED
,
l_uid
,
if
(
dap_chain_net_srv_order_find_all_by
(
l_net
,
SERV_DIR_UNDEFINED
,
l_uid
,
l_price_unit
,
NULL
,
l_price_unit
,
NULL
,
l_price_min
,
l_price_max
,
&
l_orders
,
&
l_orders_num
)
==
0
){
l_price_min
,
l_price_max
,
&
l_orders
,
&
l_orders_num
)
==
0
)
{
for
(
dap_list_t
*
l_temp
=
l_orders
;
l_temp
;
l_temp
=
l_orders
->
next
){
for
(
dap_list_t
*
l_temp
=
l_orders
;
l_temp
;
l_temp
=
l_temp
->
next
)
{
dap_chain_net_srv_order_t
*
l_order
=
(
dap_chain_net_srv_order_t
*
)
l_temp
->
data
;
dap_chain_net_srv_order_t
*
l_order
=
(
dap_chain_net_srv_order_t
*
)
l_temp
->
data
;
if
(
l_order
->
node_addr
.
uint64
==
g_node_addr
.
uint64
)
if
(
l_order
->
node_addr
.
uint64
==
g_node_addr
.
uint64
)
{
{
dap_sign_t
*
l_order_sign
=
(
dap_sign_t
*
)(
l_order
->
ext_n_sign
+
l_order
->
ext_size
);
flags
=
flags
|
F_ORDR
;
if
(
dap_sign_compare_pkeys
(
l_sign
,
l_order_sign
))
{
break
;
flags
=
flags
|
F_ORDR
;
break
;
}
}
}
}
}
dap_list_free_full
(
l_orders
,
NULL
);
dap_list_free_full
(
l_orders
,
NULL
);
...
...
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