diff --git a/3rdparty/libmdbx b/3rdparty/libmdbx index 9eda788e45aec391cdae98e165a8aa8986bb6bba..c5847bd09adb648a0eec0023744ca8c78b47fa08 160000 --- a/3rdparty/libmdbx +++ b/3rdparty/libmdbx @@ -1 +1 @@ -Subproject commit 9eda788e45aec391cdae98e165a8aa8986bb6bba +Subproject commit c5847bd09adb648a0eec0023744ca8c78b47fa08 diff --git a/cellframe-sdk b/cellframe-sdk index bc03a297a2bf539de3fe95e5fbcef89af2e5ca6e..b6321d8a8aa80472a3a838336aa79ddeea21ba4f 160000 --- a/cellframe-sdk +++ b/cellframe-sdk @@ -1 +1 @@ -Subproject commit bc03a297a2bf539de3fe95e5fbcef89af2e5ca6e +Subproject commit b6321d8a8aa80472a3a838336aa79ddeea21ba4f diff --git a/dist/share/configs/dapcash-node.cfg.tpl b/dist/share/configs/dapcash-node.cfg.tpl index 816b11d8b284ccddbb62296631e7361e80acd428..3db955b0a34e956b33fe1801928abdd4620abc18 100644 --- a/dist/share/configs/dapcash-node.cfg.tpl +++ b/dist/share/configs/dapcash-node.cfg.tpl @@ -6,6 +6,8 @@ debug_mode={DEBUG_MODE} debug_dump_stream_headers=false # Debug I/O reactor, false by default #debug_reactor=false +# Debug HTTP protocol, false by default +#debug_http=false # seed mode. WARNING. Used true only when you start the new network #seed_mode=false diff --git a/python-cellframe b/python-cellframe index 02081d14b184f7a07a37f68a180a5ca21f01042e..5f7f50045b26904da1cce15ab349c97d70e767bb 160000 --- a/python-cellframe +++ b/python-cellframe @@ -1 +1 @@ -Subproject commit 02081d14b184f7a07a37f68a180a5ca21f01042e +Subproject commit 5f7f50045b26904da1cce15ab349c97d70e767bb diff --git a/sources/main.c b/sources/main.c index 9b92dfcefa5ceb68fb02db2eb01e176392c688a8..a878372420046495ac647a941e2f629c40aef898 100755 --- a/sources/main.c +++ b/sources/main.c @@ -58,6 +58,7 @@ #include "dap_server.h" #include "dap_http.h" #include "dap_http_folder.h" +#include "dap_notify_srv.h" #include "dap_chain_node_dns_client.h" #include "dap_chain_node_dns_server.h" #include "dap_modules_dynamic_cdb.h" @@ -271,6 +272,11 @@ int main( int argc, const char **argv ) return -83; } + // Create and init notify server + if ( dap_notify_server_init() != 0 ){ + log_it( L_ERROR, "Can't init notify server module" ); + } + dap_client_init(); @@ -411,7 +417,7 @@ int main( int argc, const char **argv ) if( l_port > 0 ) { l_server = dap_server_new(l_events, (dap_config_get_item_str(g_config, "server", "listen_address")), - (uint16_t) l_port, DAP_SERVER_TCP, NULL ); + (uint16_t) l_port, SERVER_TCP, NULL ); } else log_it( L_WARNING, "Server is enabled but no port is defined" ); @@ -480,6 +486,8 @@ int main( int argc, const char **argv ) dap_chain_plugins_init(g_config); #endif + + rc = dap_events_wait(l_events); log_it( rc ? L_CRITICAL : L_NOTICE, "Server loop stopped with return code %d", rc ); // Deinit modules