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
16
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
5389af93
Unverified
Commit
5389af93
authored
5 years ago
by
Dmitriy A. Gerasimov
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #29 from kelvinblockchain/feature-2298
Feature 2298
parents
02ed3c39
69c019bb
No related branches found
No related tags found
1 merge request
!24
Support 3689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_chain_node_cli_cmd.c
+4
-0
4 additions, 0 deletions
dap_chain_node_cli_cmd.c
with
4 additions
and
0 deletions
dap_chain_node_cli_cmd.c
+
4
−
0
View file @
5389af93
...
...
@@ -773,9 +773,12 @@ int com_node(int a_argc, const char ** a_argv, char **a_str_reply)
log_it
(
L_NOTICE
,
"Stream connection established, now lets sync all"
);
dap_stream_ch_chain_sync_request_t
l_sync_request
=
{
{
0
}
};
dap_stream_ch_t
*
l_ch_chain
=
dap_client_get_stream_ch
(
l_node_client
->
client
,
dap_stream_ch_chain_get_id
());
// fill begin time
l_sync_request
.
ts_start
=
(
uint64_t
)
dap_db_log_get_last_timestamp_remote
(
l_remote_node_info
->
hdr
.
address
.
uint64
);
// fill end time = 0 - no time limit
//l_sync_request.ts_end = (time_t) time(NULL);
// fill current node address
l_sync_request
.
node_addr
.
uint64
=
dap_chain_net_get_cur_addr
(
l_net
)
?
dap_chain_net_get_cur_addr
(
l_net
)
->
uint64
:
dap_db_get_cur_node_addr
();
...
...
@@ -832,6 +835,7 @@ int com_node(int a_argc, const char ** a_argv, char **a_str_reply)
log_it
(
L_INFO
,
"Chains and gdb are synced"
);
DAP_DELETE
(
l_remote_node_info
);
dap_client_disconnect
(
l_node_client
->
client
);
l_node_client
->
client
=
NULL
;
dap_chain_node_client_close
(
l_node_client
);
dap_chain_node_cli_set_reply_text
(
a_str_reply
,
"Node sync completed: Chains and gdb are synced"
);
return
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