diff --git a/CMakeLists.txt b/CMakeLists.txt index cf9d4f5a0987ffcbcc1501c7d907aa783cec5468..8daa7072c93f752deacb1cc8163996afb6ed18c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,15 +28,15 @@ endif() if (WIN32) - set(CELLFRAME_MODULES "core chains mining network srv cs-blocks cs-dag-poa cs-block-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange") + set(CELLFRAME_MODULES "core chains mining network srv cs-dag-poa cs-block-poa cs-dag-pos cs-block-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange") elseif(BSD) - set(CELLFRAME_MODULES "core chains mining network srv cs-blocks cs-dag-poa cs-block-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange") + set(CELLFRAME_MODULES "core chains mining network srv cs-dag-poa cs-block-poa cs-dag-pos cs-block-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange") elseif(DARWIN) - set(CELLFRAME_MODULES "core chains mining network srv cs-blocks cs-dag-poa cs-block-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange") + set(CELLFRAME_MODULES "core chains mining network srv cs-dag-poa cs-block-poa cs-dag-pos cs-block-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange") elseif(ANDROID) - set(CELLFRAME_MODULES "core chains mining network srv cs-blocks cs-dag-poa cs-block-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange") + set(CELLFRAME_MODULES "core chains mining network srv cs-dag-poa cs-block-poa cs-dag-pos cs-block-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange") elseif(LINUX) - set(CELLFRAME_MODULES "core chains mining network srv cs-blocks cs-dag-poa cs-block-poa cs-dag-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange modules-dynamic srv-vpn") + set(CELLFRAME_MODULES "core chains mining network srv cs-dag-poa cs-block-poa cs-dag-pos cs-block-pos cs-none srv-app srv-app-db srv-datum srv-stake srv-xchange modules-dynamic srv-vpn") endif() if (CELLFRAME_MODULES MATCHES "modules-dynamic") diff --git a/cellframe-sdk b/cellframe-sdk index dde3e06026202e2f6f8d50c25e49e7c934e7ad6d..11ac274c5c80f0b4c5a282e1d481bf8fb5a72076 160000 --- a/cellframe-sdk +++ b/cellframe-sdk @@ -1 +1 @@ -Subproject commit dde3e06026202e2f6f8d50c25e49e7c934e7ad6d +Subproject commit 11ac274c5c80f0b4c5a282e1d481bf8fb5a72076 diff --git a/sources/main.c b/sources/main.c index 18bca55f563d1a09c0dfffb54c1fcad5ef85d67a..1b88bc6b7a277697093b3f789af8ac7434515422 100755 --- a/sources/main.c +++ b/sources/main.c @@ -74,6 +74,9 @@ #include "dap_chain.h" #include "dap_chain_wallet.h" +#include "dap_chain_cs_blocks.h" +#include "dap_chain_cs_block_poa.h" +#include "dap_chain_cs_block_pos.h" #include "dap_chain_cs_dag.h" #include "dap_chain_cs_dag_poa.h" #include "dap_chain_cs_dag_pos.h" @@ -327,7 +330,22 @@ int main( int argc, const char **argv ) } if( dap_chain_cs_dag_pos_init() !=0){ - log_it(L_CRITICAL,"Can't init dap chain dag consensus PoA module"); + log_it(L_CRITICAL,"Can't init dap chain dag consensus PoS module"); + return -64; + } + + if (dap_chain_cs_blocks_init() != 0) { + log_it(L_CRITICAL,"Can't init dap chain blocks consensus module"); + return -62; + } + + if (dap_chain_cs_block_poa_init() != 0) { + log_it(L_CRITICAL,"Can't init dap chain blocks consensus PoA module"); + return -63; + } + + if (dap_chain_cs_block_pos_init() != 0) { + log_it(L_CRITICAL,"Can't init dap chain blocks consensus PoS module"); return -64; }