Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
celllframe-node
Commits
2310b7de
Commit
2310b7de
authored
4 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Plain Diff
Merge branch 'features-2844' into 'master'
features-2844 See merge request
!139
parents
e4154cac
5bb2d1e0
No related branches found
No related tags found
1 merge request
!139
features-2844
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+5
-5
5 additions, 5 deletions
CMakeLists.txt
cellframe-sdk
+1
-1
1 addition, 1 deletion
cellframe-sdk
sources/main.c
+10
-0
10 additions, 0 deletions
sources/main.c
with
16 additions
and
6 deletions
CMakeLists.txt
+
5
−
5
View file @
2310b7de
...
...
@@ -7,18 +7,18 @@ set(CMAKE_C_STANDARD 11)
# Predefine project
SET
(
CPACK_PACKAGE_NAME
"
${
PROJECT_NAME
}
"
)
SET
(
CPACK_PACKAGE_VERSION_MAJOR 3
)
SET
(
CPACK_PACKAGE_VERSION_MINOR
3
)
SET
(
CPACK_PACKAGE_VERSION_PATCH
9
)
SET
(
CPACK_PACKAGE_VERSION_MINOR
4
)
SET
(
CPACK_PACKAGE_VERSION_PATCH
1
)
# init CellFrame SDK
add_definitions
(
"-DDAP_VERSION=
\"
${
CPACK_PACKAGE_VERSION_MAJOR
}
\"
"
)
set
(
SUBMODULES_NO_BUILD ON
)
set
(
SUPPORT_PYTHON_PLUGINS ON
)
if
(
NOT
(
WIN32
)
)
set
(
CELLFRAME_MODULES
"core chains mining network srv cs-dag-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum srv-vpn"
)
if
(
NOT
WIN32
)
set
(
CELLFRAME_MODULES
"core chains mining network srv cs-dag-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum srv-vpn
srv-xchange
"
)
else
()
set
(
CELLFRAME_MODULES
"core chains mining network srv cs-dag-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum"
)
set
(
CELLFRAME_MODULES
"core chains mining network srv cs-dag-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum
srv-xchange
"
)
endif
()
include
(
cellframe-sdk/cmake/OS_Detection.cmake
)
...
...
This diff is collapsed.
Click to expand it.
cellframe-sdk
@
737074e2
Compare
b6ec5d92
...
737074e2
Subproject commit
b6ec5d920be946759f94e5aa12aa2dade036979c
Subproject commit
737074e29c23a31c27db397589c2339a68c15af0
This diff is collapsed.
Click to expand it.
sources/main.c
+
10
−
0
View file @
2310b7de
...
...
@@ -100,6 +100,7 @@
#include
"dap_stream_ch_chain.h"
#include
"dap_stream_ch_chain_net.h"
#include
"dap_stream_ch_chain_net_srv.h"
#include
"dap_chain_net_srv_xchange.h"
#include
"dap_common.h"
#include
"dap_client_remote.h"
...
...
@@ -134,6 +135,8 @@ void exit_if_server_already_running( void );
static
const
char
*
s_pid_file_path
=
NULL
;
bool
dap_chain_net_srv_pay_verificator
(
dap_chain_tx_out_cond_t
*
a_cond
,
dap_chain_datum_tx_t
*
a_tx
)
{
return
true
;
}
#ifdef __ANDROID__
int
cellframe_node_Main
(
int
argc
,
const
char
**
argv
)
#else
...
...
@@ -293,6 +296,9 @@ int main( int argc, const char **argv )
return
-
71
;
}
dap_chain_ledger_verificator_add
(
DAP_CHAIN_TX_OUT_COND_SUBTYPE_SRV_XCHANGE
,
dap_chain_net_srv_xchange_verificator
);
dap_chain_ledger_verificator_add
(
DAP_CHAIN_TX_OUT_COND_SUBTYPE_SRV_PAY
,
dap_chain_net_srv_pay_verificator
);
if
(
dap_chain_net_init
()
!=
0
){
log_it
(
L_CRITICAL
,
"Can't init dap chain network module"
);
return
-
65
;
...
...
@@ -447,6 +453,10 @@ int main( int argc, const char **argv )
dap_stream_ch_chain_net_srv_init
();
if
(
!
dap_chain_net_srv_xchange_init
())
{
log_it
(
L_ERROR
,
"Can't provide exchange capability"
);
}
/// if (dap_config_get_item_bool_default(g_config,"vpn","enabled",false))
/// dap_stream_ch_vpn_deinit();
...
...
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