Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-cellframe
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
python-cellframe
Commits
f9738008
Commit
f9738008
authored
5 months ago
by
Dmitry Puzyrkov
Browse files
Options
Downloads
Patches
Plain Diff
[*] atom confirmation notificator wrapped with confirmation count
parent
eaef4b5d
No related branches found
No related tags found
2 merge requests
!430
Develop port 02 12
,
!418
added atom confirmed notifier
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cellframe-sdk
+1
-1
1 addition, 1 deletion
cellframe-sdk
dists/python-modules/pycfhelpers
+1
-1
1 addition, 1 deletion
dists/python-modules/pycfhelpers
modules/cellframe-sdk/chain/src/libdap-chain-python.c
+5
-2
5 additions, 2 deletions
modules/cellframe-sdk/chain/src/libdap-chain-python.c
with
7 additions
and
4 deletions
cellframe-sdk
@
17abbf5f
Compare
8477d1c2
...
17abbf5f
Subproject commit
8477d1c289c036a9c2cc41471285a19d244e5e80
Subproject commit
17abbf5f2c5c85e61847643983bde90c7486ee4f
This diff is collapsed.
Click to expand it.
pycfhelpers
@
b70bc241
Compare
45b60769
...
b70bc241
Subproject commit
45b607694ee0786dd1edc7fb605695701f4866c7
Subproject commit
b70bc241c0d963f04ae93c7219ab2a2111b091b9
This diff is collapsed.
Click to expand it.
modules/cellframe-sdk/chain/src/libdap-chain-python.c
+
5
−
2
View file @
f9738008
...
...
@@ -429,7 +429,8 @@ PyObject *dap_chain_atom_confirmed_notify_add_py(PyObject *self, PyObject *args)
dap_chain_t
*
l_chain
=
((
PyDapChainObject
*
)
self
)
->
chain_t
;
PyObject
*
obj_func
;
PyObject
*
obj_arg
;
if
(
!
PyArg_ParseTuple
(
args
,
"OO"
,
&
obj_func
,
&
obj_arg
))
{
int
conf_cnt
=
0
;
if
(
!
PyArg_ParseTuple
(
args
,
"OOi"
,
&
obj_func
,
&
obj_arg
,
&
conf_cnt
))
{
PyErr_SetString
(
PyExc_AttributeError
,
"Arguments must be a callable and an argument"
);
return
NULL
;
}
...
...
@@ -446,7 +447,9 @@ PyObject *dap_chain_atom_confirmed_notify_add_py(PyObject *self, PyObject *args)
l_callback
->
arg
=
obj_arg
;
Py_INCREF
(
obj_func
);
Py_INCREF
(
obj_arg
);
dap_chain_atom_confirmed_notify_add
(
l_chain
,
_wrapping_dap_chain_atom_confirmed_notify_handler
,
l_callback
);
log_it
(
L_DEBUG
,
"Added confirmed atom notify in %s:%s for %d confirmations"
,
l_chain
->
net_name
,
l_chain
->
name
,
conf_cnt
);
dap_chain_atom_confirmed_notify_add
(
l_chain
,
_wrapping_dap_chain_atom_confirmed_notify_handler
,
l_callback
,
conf_cnt
);
Py_RETURN_NONE
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment