diff --git a/src/libdap_chain_net_python.c b/src/libdap_chain_net_python.c index 147ed9358cbb6f5d71db4f4f968d02455c2ec623..18f0d5db8233e098cf3fc06b2ee52641c7a7ebb8 100644 --- a/src/libdap_chain_net_python.c +++ b/src/libdap_chain_net_python.c @@ -45,8 +45,9 @@ PyObject *dap_chain_net_sync_all_py(PyObject *self, PyObject *args){ } PyObject *dap_chain_net_proc_datapool_py(PyObject *self, PyObject *args){ - dap_chain_net_proc_datapool(((PyDapChainNetObject*)self)->chain_net); - return PyLong_FromLong(0); + //dap_chain_net_proc_datapool(((PyDapChainNetObject*)self)->chain_net); + //return PyLong_FromLong(0); + return NULL; } PyObject *dap_chain_net_by_name_py(PyObject *self, PyObject *args){ @@ -98,7 +99,7 @@ PyObject *dap_chain_net_get_cur_addr_py(PyObject *self, PyObject *args){ } PyObject *dap_chain_net_get_cur_cell_py(PyObject *self, PyObject *args){ PyObject *obj_cell_id = _PyObject_New(&DapChainNodeAddrObject_DapChainNodeAddrObjectType); - ((PyDapChainCellIDObject*)obj_cell_id)->cell_id = dap_chain_net_get_cur_cell(((PyDapChainNetObject*)self)->chain_net); + ((PyDapChainCellIDObject*)obj_cell_id)->cell_id = *(dap_chain_net_get_cur_cell(((PyDapChainNetObject*)self)->chain_net)); return Py_BuildValue("O", obj_cell_id); } PyObject *dap_chain_net_get_cur_addr_int_py(PyObject *self, PyObject *args){