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
caafada0
Commit
caafada0
authored
1 year ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix-10094_d' into 'develop'
Hotfix 10094 d See merge request
!1390
parents
17ca26b3
22b189d0
No related branches found
No related tags found
1 merge request
!1390
Hotfix 10094 d
Pipeline
#33431
passed with stage
in 6 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/channel/chain-net/dap_stream_ch_chain_net.c
+14
-1
14 additions, 1 deletion
modules/channel/chain-net/dap_stream_ch_chain_net.c
with
14 additions
and
1 deletion
modules/channel/chain-net/dap_stream_ch_chain_net.c
+
14
−
1
View file @
caafada0
...
@@ -202,6 +202,8 @@ void s_stream_ch_packet_in(dap_stream_ch_t *a_ch, void* a_arg)
...
@@ -202,6 +202,8 @@ void s_stream_ch_packet_in(dap_stream_ch_t *a_ch, void* a_arg)
uint256_t
l_price_min
=
{};
uint256_t
l_price_min
=
{};
uint256_t
l_price_max
=
{};
uint256_t
l_price_max
=
{};
uint8_t
flags
=
0
;
uint8_t
flags
=
0
;
dap_chain_node_addr_t
l_cur_node_addr
=
{
0
};
l_cur_node_addr
.
uint64
=
dap_chain_net_get_cur_addr_int
(
l_net
);
if
(
enc_key_pvt
)
if
(
enc_key_pvt
)
{
{
...
@@ -229,7 +231,18 @@ void s_stream_ch_packet_in(dap_stream_ch_t *a_ch, void* a_arg)
...
@@ -229,7 +231,18 @@ void s_stream_ch_packet_in(dap_stream_ch_t *a_ch, void* a_arg)
dap_chain_net_srv_order_find_all_by
(
l_net
,
SERV_DIR_UNDEFINED
,
l_uid
,
dap_chain_net_srv_order_find_all_by
(
l_net
,
SERV_DIR_UNDEFINED
,
l_uid
,
l_price_unit
,
NULL
,
l_price_min
,
l_price_max
,
&
l_orders
,
&
l_orders_num
);
l_price_unit
,
NULL
,
l_price_min
,
l_price_max
,
&
l_orders
,
&
l_orders_num
);
flags
=
l_orders_num
?
flags
|
F_ORDR
:
flags
&
~
F_ORDR
;
size_t
l_orders_size
=
0
;
for
(
size_t
i
=
0
;
i
<
l_orders_num
;
i
++
){
dap_chain_net_srv_order_t
*
l_order
=
(
dap_chain_net_srv_order_t
*
)
(((
byte_t
*
)
l_orders
)
+
l_orders_size
);
l_orders_size
+=
dap_chain_net_srv_order_get_size
(
l_order
);
if
(
l_order
->
node_addr
.
uint64
==
l_cur_node_addr
.
uint64
)
{
flags
=
flags
|
F_ORDR
;
break
;
}
}
if
(
l_orders_num
)
DAP_DELETE
(
l_orders
);
bool
auto_online
=
dap_config_get_item_bool_default
(
g_config
,
"general"
,
"auto_online"
,
false
);
bool
auto_online
=
dap_config_get_item_bool_default
(
g_config
,
"general"
,
"auto_online"
,
false
);
bool
auto_update
=
false
;
bool
auto_update
=
false
;
if
((
system
(
"systemctl status cellframe-updater.service"
)
==
768
)
&&
(
system
(
"systemctl status cellframe-updater.timer"
)
==
0
))
if
((
system
(
"systemctl status cellframe-updater.service"
)
==
768
)
&&
(
system
(
"systemctl status cellframe-updater.timer"
)
==
0
))
...
...
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