Skip to content
Snippets Groups Projects
Commit 171141c5 authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'feature-14237' into 'master'

feature-14237

See merge request !428
parents c5f1c5de a5d92094
No related branches found
No related tags found
1 merge request!428feature-14237
......@@ -455,8 +455,8 @@ typedef struct pvt_ledger_notify{
PyObject *argv;
}pvt_ledger_notify_t;
static void pvt_wrapping_dap_chain_ledger_tx_add_notify(void *a_arg, dap_ledger_t *a_ledger,
dap_chain_datum_tx_t *a_tx, dap_chan_ledger_notify_opcodes_t a_opcode){
static void pvt_wrapping_dap_chain_ledger_tx_add_notify(void *a_arg, dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx,
dap_hash_fast_t *a_tx_hash, dap_chan_ledger_notify_opcodes_t a_opcode){
if (!a_arg)
return;
if (a_opcode == DAP_LEDGER_NOTIFY_OPCODE_ADDED){
......
......@@ -36,7 +36,6 @@ PyObject *wrapping_dap_chain_net_srv_xchange_price_get_token_sell(PyObject *self
PyObject *wrapping_dap_chain_net_srv_xchange_price_get_datoshi_sell(PyObject *self, void *closure);
PyObject *wrapping_dap_chain_net_srv_xchange_price_get_net(PyObject *self, void *closure);
PyObject *wrapping_dap_chain_net_srv_xchange_price_get_token_buy(PyObject *self, void *closure);
PyObject *wrapping_dap_chain_net_srv_xchange_price_get_datoshi_buy(PyObject *self, void *closure);
PyObject *wrapping_dap_chain_net_srv_xchange_price_get_rate(PyObject *self, void *closure);
PyObject *wrapping_dap_chain_net_srv_xchange_price_get_fee(PyObject *self, void *closure);
......
......@@ -11,7 +11,6 @@ PyGetSetDef DapChainNetSrvXchangePriceGetSetDef[] = {
{"datoshiSell", (getter)wrapping_dap_chain_net_srv_xchange_price_get_datoshi_sell, NULL, NULL, NULL},
{"net", (getter)wrapping_dap_chain_net_srv_xchange_price_get_net, NULL, NULL, NULL},
{"tokenBuy", (getter)wrapping_dap_chain_net_srv_xchange_price_get_token_buy, NULL, NULL, NULL},
{"datoshiBuy", (getter) wrapping_dap_chain_net_srv_xchange_price_get_datoshi_buy, NULL, NULL, NULL},
{"rate", (getter)wrapping_dap_chain_net_srv_xchange_price_get_rate, NULL, NULL, NULL},
{"fee", (getter)wrapping_dap_chain_net_srv_xchange_price_get_fee, NULL, NULL, NULL},
{"txHash", (getter)wrapping_dap_chain_net_srv_xchange_price_get_tx_hash, NULL, NULL, NULL},
......@@ -65,12 +64,6 @@ PyObject *wrapping_dap_chain_net_srv_xchange_price_get_token_buy(PyObject *self,
UNUSED(closure);
return Py_BuildValue("s", PRICE(self)->token_buy);
}
PyObject *wrapping_dap_chain_net_srv_xchange_price_get_datoshi_buy(PyObject *self, void *closure){
UNUSED(closure);
DapMathObject *obj_math = PyObject_New(DapMathObject, &DapMathObjectType);
obj_math->value = PRICE(self)->datoshi_buy;
return (PyObject*)obj_math;
}
PyObject *wrapping_dap_chain_net_srv_xchange_price_get_rate(PyObject *self, void *closure){
UNUSED(closure);
DapMathObject *obj_math = PyObject_New(DapMathObject, &DapMathObjectType);
......
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