Skip to content
Snippets Groups Projects
Commit cfaa3c0a authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'bugs-3951' into 'master'

bugs-3951

See merge request !30
parents ce2cc96f bcf8c7a5
No related branches found
No related tags found
1 merge request!30bugs-3951
...@@ -221,15 +221,16 @@ PyObject *dap_chain_ledger_tx_find_by_pkey_py(PyObject *self, PyObject *args){ ...@@ -221,15 +221,16 @@ PyObject *dap_chain_ledger_tx_find_by_pkey_py(PyObject *self, PyObject *args){
return Py_BuildValue("O", res); return Py_BuildValue("O", res);
} }
PyObject *dap_chain_ledger_tx_cache_find_out_cond_py(PyObject *self, PyObject *args){ PyObject *dap_chain_ledger_tx_cache_find_out_cond_py(PyObject *self, PyObject *args){
PyObject *obj_addr;
PyObject *obj_first_hash; PyObject *obj_first_hash;
if (!PyArg_ParseTuple(args, "O|O", &obj_addr, &obj_first_hash)) if (!PyArg_ParseTuple(args, "O", &obj_first_hash))
return NULL; return NULL;
PyObject *res = _PyObject_New(&DapChainDatumTx_DapChainDatumTxObjectType); PyObject *res = _PyObject_New(&DapChainDatumTx_DapChainDatumTxObjectType);
dap_chain_tx_out_cond_t **out_conds = NULL;
int *out_cond_idx = NULL;
((PyDapChainDatumTxObject*)res)->datum_tx = (dap_chain_datum_tx_t*)dap_chain_ledger_tx_cache_find_out_cond( ((PyDapChainDatumTxObject*)res)->datum_tx = (dap_chain_datum_tx_t*)dap_chain_ledger_tx_cache_find_out_cond(
((PyDapChainLedgerObject*)self)->ledger, ((PyDapChainLedgerObject*)self)->ledger,
((PyDapChainAddrObject*)obj_addr)->addr, ((PyDapHashFastObject*)obj_first_hash)->hash_fast,
((PyDapHashFastObject*)obj_first_hash)->hash_fast); out_conds, out_cond_idx);
return Py_BuildValue("O", res); return Py_BuildValue("O", res);
} }
PyObject *dap_chain_ledger_tx_cache_get_out_cond_value_py(PyObject *self, PyObject *args){ PyObject *dap_chain_ledger_tx_cache_get_out_cond_value_py(PyObject *self, PyObject *args){
......
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