From 7ca39957cad9cd82889d05100286ed6ea987ae41 Mon Sep 17 00:00:00 2001 From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net> Date: Mon, 17 Feb 2020 22:50:46 +0700 Subject: [PATCH] [*] Some small changes --- .gitmodules | 4 ++++ cellframe-sdk | 2 +- cellframe-sdk-python/libdap-chain-cli-python | 1 + example/example-start-1/MyChains.py | 25 +++++++++----------- 4 files changed, 17 insertions(+), 15 deletions(-) create mode 160000 cellframe-sdk-python/libdap-chain-cli-python diff --git a/.gitmodules b/.gitmodules index e7f020e4..cf3ee2d5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -34,3 +34,7 @@ path = cellframe-sdk-python/libdap-client-python url = https://gitlab.demlabs.net/cellframe/libdap-client-python.git/ branch = master +[submodule "cellframe-sdk-python/libdap-chain-cli-python"] + path = cellframe-sdk-python/libdap-chain-cli-python + url = https://gitlab.demlabs.net/cellframe/libdap-chain-cli-python.git + branch = master diff --git a/cellframe-sdk b/cellframe-sdk index 9ab0cbbc..00449e0d 160000 --- a/cellframe-sdk +++ b/cellframe-sdk @@ -1 +1 @@ -Subproject commit 9ab0cbbcabd0955d216e1254da00befe3a82c96a +Subproject commit 00449e0dfd5acba4f22f9e1580794a83ac733c78 diff --git a/cellframe-sdk-python/libdap-chain-cli-python b/cellframe-sdk-python/libdap-chain-cli-python new file mode 160000 index 00000000..25a90c2c --- /dev/null +++ b/cellframe-sdk-python/libdap-chain-cli-python @@ -0,0 +1 @@ +Subproject commit 25a90c2c791fbbf1ad20dc4b9a55147ea78cf2ab diff --git a/example/example-start-1/MyChains.py b/example/example-start-1/MyChains.py index 70e2a92b..de42a32c 100644 --- a/example/example-start-1/MyChains.py +++ b/example/example-start-1/MyChains.py @@ -9,12 +9,19 @@ json_string = """{ "modules": ["Crypto", "ServerCore", "Http", "HttpFolder", "GlobalDB", "Client", "HttpClientSimple", "Mempool", "Chain", "Wallet", "ChainCSDag", "ChainCSDagPoa", "ChainCSDagPos", "GDB", "Net", "ChainNetSrv", "EncHttp", "Stream", "StreamCtl", "HttpSimple", "StreamChChain", "StreamChChainNet", "StreamChChainNetSrv"], - "DAP": { + "DAP": { "config_dir": \""""+tmp_dir+"""\", "log_level": "L_DEBUG", "application_name": \""""+app_name+"""\", "file_name_log": \""""+app_name+""".text\" - }, + }, + "Stream" : { + "DebugDumpStreamHeaders": false + }, + "ServerCore" : { + "thread_cnt": 0, + "conn": 0 + } "Configuration" : { "general": { "debug_mode": false, @@ -22,13 +29,10 @@ json_string = """{ "wallets_default": "default" }, "server": { - "enabled": false, + "enabled": true, "listen_address": "0.0.0.0", "listen_port_tcp": 8079 }, - "mempool": { - "accept": false - }, "conserver": { "enabled": true, "listen_unix_socket_path": \""""+tmp_dir+"""/node_cli\" @@ -46,7 +50,7 @@ json_string = """{ "devnet": { "general":{ "id": "0xFF00000000000003", - "name": "devnet", + "name": "mychains-dev", "type": "development", "node-role": "root", "gdb_groups_prefix": "devnet" @@ -69,13 +73,6 @@ json_string = """{ } } }, - "Stream" : { - "DebugDumpStreamHeaders": false - }, - "ServerCore" : { - "thread_cnt": 0, - "conn": 0 - } }""" CellFrame.init(json_string) -- GitLab