Skip to content
Snippets Groups Projects

Features 2773

Merged alexey.stratulat requested to merge features-2773 into master
3 files
+ 12
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -241,7 +241,7 @@ PyObject *python_cellframe_init(PyObject *self, PyObject *args){
@@ -241,7 +241,7 @@ PyObject *python_cellframe_init(PyObject *self, PyObject *args){
}
}
s_init_http_client_simple = true;*/
s_init_http_client_simple = true;*/
} else if (strcmp(c_value, "Wallet") == 0){
} else if (strcmp(c_value, "Wallet") == 0){
if (dap_chain_wallet_init() != 0){
if (dap_chain_wallet_init_py() != 0){
PyErr_SetString(CellFrame_error, "Failed to initialize Wallet module. ");
PyErr_SetString(CellFrame_error, "Failed to initialize Wallet module. ");
return NULL;
return NULL;
}
}
@@ -376,7 +376,8 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
@@ -376,7 +376,8 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
PyType_Ready(&DapStreamCtl_DapStreamCtlType) < 0 ||
PyType_Ready(&DapStreamCtl_DapStreamCtlType) < 0 ||
PyType_Ready(&DapMempool_DapMempoolType) < 0 ||
PyType_Ready(&DapMempool_DapMempoolType) < 0 ||
// ====
// ====
PyType_Ready(&DapAppCli_dapAppCliType ) < 0
PyType_Ready(&DapAppCli_dapAppCliType ) < 0 ||
 
PyType_Ready(&DapChainWallet_dapChainWalletType) < 0
){
){
log_it(L_CRITICAL,"Not all py modules are ready for init");
log_it(L_CRITICAL,"Not all py modules are ready for init");
return NULL;
return NULL;
@@ -447,6 +448,7 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
@@ -447,6 +448,7 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
// =============
// =============
PyModule_AddObject(module, "ChainGDB", (PyObject*)&DapChainGDBObject_DapChainGDBType);
PyModule_AddObject(module, "ChainGDB", (PyObject*)&DapChainGDBObject_DapChainGDBType);
 
PyModule_AddObject(module, "ChainWallet", (PyObject*)&DapChainWallet_dapChainWalletType);
PyModule_AddObject(module, "Http", (PyObject*)&DapHTTP_DapHTTPType);
PyModule_AddObject(module, "Http", (PyObject*)&DapHTTP_DapHTTPType);
PyModule_AddObject(module, "EncHttp", (PyObject*)&DapEncHTTP_DapEncHTTPType);
PyModule_AddObject(module, "EncHttp", (PyObject*)&DapEncHTTP_DapEncHTTPType);
@@ -488,6 +490,9 @@ PyObject *python_cellframe_deinit(PyObject *self, PyObject *args){
@@ -488,6 +490,9 @@ PyObject *python_cellframe_deinit(PyObject *self, PyObject *args){
if (s_init_ks){
if (s_init_ks){
dap_enc_ks_deinit();
dap_enc_ks_deinit();
}
}
 
if (s_init_wallet){
 
dap_chain_wallet_deinit_py();
 
}
dap_config_close(g_config);
dap_config_close(g_config);
dap_config_deinit();
dap_config_deinit();
dap_common_deinit();
dap_common_deinit();
Loading