Skip to content
Snippets Groups Projects
Commit 2025d220 authored by Roman Khlopkov's avatar Roman Khlopkov 🔜 Committed by dmitriy.gerasimov
Browse files

hotfix-5564

parent 56a63876
No related branches found
No related tags found
1 merge request!79hotfix-5564
......@@ -36,6 +36,11 @@
#include "wrapping_dap_chain_net_node_client.h"
#include "wrapping_dap_chain_net_node_info.h"
#include "wrapping_dap_chain_net_state.h"
// === Chain net srv ===
#include "wrapping_dap_chain_net_srv.h"
#include "wrapping_dap_chain_net_srv_client_remote.h"
#include "wrapping_dap_chain_net_srv_common.h"
#include "wrapping_dap_chain_net_srv_order.h"
// ============
// === type DAG ===
#include "wrapping_dap_chain_cs_dag.h"
......@@ -50,6 +55,8 @@
#include "wrapping_dap_mempool.h"
#include "wrapping_dap_http_folder.h"
#include "dap_chain_wallet_python.h"
// === Chain GlobalDB ===
#include "wrapping_dap_chain_global_db.h"
//#include "dap_http_client_simple.h"
//#include "dap_chain_wallet.h"
......
......@@ -280,6 +280,10 @@ static PyTypeObject DapChainNetSrvUIDObject_DapChainNetSrvUIDObjectType = {
/*=================*/
static bool PyDapChainNetSrvUid_Check(PyObject *a_obj){
return PyObject_TypeCheck(a_obj, &DapChainNetSrvUIDObject_DapChainNetSrvUIDObjectType);
}
/* Chain net srv uid */
typedef struct PyDapChainNetSrvPriceUnitUID{
PyObject_HEAD
......
......@@ -76,7 +76,7 @@ int PyDapChainNetSrvClient_init(PyDapChainNetSrvClientObject* self, PyObject *ar
PyObject *obj_net, *obj_hander;
const char *addr;
uint16_t port;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "OsH", (char *)kwlist, &obj_net, &addr, &port, &obj_hander)){
if (!PyArg_ParseTupleAndKeywords(args, kwds, "OsH", (char **)kwlist, &obj_net, &addr, &port, &obj_hander)){
return -1;
}
if (!PyCallable_Check(obj_hander)){
......
......@@ -216,7 +216,8 @@ PyObject *wrapping_dap_chain_net_srv_order_delete(PyObject *self, PyObject *args
return NULL;
}
PyObject *wrapping_dap_chain_net_srv_order_find_all_by(PyObject *self, PyObject *args){}
PyObject *wrapping_dap_chain_net_srv_order_find_all_by(PyObject *self, PyObject *args){return Py_None;}
PyObject *wrapping_dap_chain_net_srv_order_save(PyObject *self, PyObject *args){
PyObject *obj_net;
if(!PyArg_ParseTuple(args, "O", &obj_net)){
......
......@@ -156,6 +156,10 @@ static PyTypeObject DapHashFastObject_DapHashFastObjectType = {
PyType_GenericNew, /* tp_new */
};
static bool PyDapHashFast_Check(PyObject *a_obj){
return PyObject_TypeCheck(a_obj, &DapHashFastObject_DapHashFastObjectType);
}
#ifdef __cplusplus
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment