Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • cellframe/python-cellframe
1 result
Show changes
Commits on Source (2)
Subproject commit 21886ef54e5b6d00c605221271530f83201b1574
Subproject commit 94910007b490c61d506b5025304348a722a3c0ef
......@@ -10,27 +10,27 @@ app_name = "MyAuth"
jsonCfg=MyAuthConf.getJsonString(app_name)
try:
init( jsonCfg )
rsi = init( jsonCfg )
except json.decoder.JSONDecodeError as jex:
sys.stderr.write("load_json_config JSONdecode :%s" % jex)
exit(-1)
setLogLevel(DEBUG)
ev = rsi[1]
server_host_name = configGetItem("server", "listen_address")
server_port = int(configGetItem("server", "listen_port_tcp"))
sr = ServerCore.listen(server_host_name, server_port, 0)
sr = ServerCore.listen(ev, server_host_name, server_port, 0)
Http.new(sr, app_name)
EncHttp.addProc(sr, "/enc_http")
Stream.addProcHttp(sr, "/stream")
StreamCtl.addProcHttp(sr, "/stream_ctl")
ev = Events()
ev.start()
MyAuthCmd.init()
print(app_name+" v0.1 runned on port "+str(server_port))
rc = ServerCore.loop(sr)
rc = ev.wait()
deinit()
......@@ -13,10 +13,10 @@ def getJsonString(app_name, log_level="DEBUG"):
ret_tpl = Template("""
{
"modules": [
"Crypto", "ServerCore", "Http",
"HttpFolder","GlobalDB","Client","HttpClientSimple","Mempool",
"Crypto", "Events", "Server", "Http",
"HttpFolder","GlobalDB","Client","HttpClientSimple", "EncHttp", "Mempool", "Stream", "StreamCtl",
"Chain", "Wallet", "ChainCSDag", "ChainCSDagPoa", "ChainCSDagPos", "GDB", "Net", "AppCliServer",
"ChainNetSrv", "EncHttp","Stream", "StreamCtl", "HttpSimple", "StreamChChain", "StreamChChainNet",
"ChainNetSrv","HttpSimple", "StreamChChain", "StreamChChainNet",
"StreamChChainNetSrv" ],
"Core": {
"config_dir": "${tmp_dir}",
......@@ -61,10 +61,10 @@ def getJsonString(app_name, log_level="DEBUG"):
"name_cfg_files": ["main"],
"conf_files":{
"main": {
"general": {
"id": "0xF00000000000000F",
"chain":{
"id": "0x0A0000000000000F",
"name": "main",
"consensus": "dag-poa",
"consensus": "dag_poa",
"datum_types": ["ca", "transaction","token","token_update","emission","shard"]
},
"dag":{
......