Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
8d893615
Commit
8d893615
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix some bugs...
parent
9518774d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cutecoin/core/registry/identities.py
+6
-4
6 additions, 4 deletions
src/cutecoin/core/registry/identities.py
src/cutecoin/core/registry/identity.py
+2
-1
2 additions, 1 deletion
src/cutecoin/core/registry/identity.py
src/cutecoin/gui/wot_tab.py
+3
-2
3 additions, 2 deletions
src/cutecoin/gui/wot_tab.py
with
11 additions
and
7 deletions
src/cutecoin/core/registry/identities.py
+
6
−
4
View file @
8d893615
...
@@ -208,11 +208,13 @@ class IdentitiesRegistry:
...
@@ -208,11 +208,13 @@ class IdentitiesRegistry:
elif
self
.
_instances
[
pubkey
].
blockchain_state
!=
BlockchainState
.
VALIDATED
\
elif
self
.
_instances
[
pubkey
].
blockchain_state
!=
BlockchainState
.
VALIDATED
\
and
blockchain_state
==
BlockchainState
.
VALIDATED
:
and
blockchain_state
==
BlockchainState
.
VALIDATED
:
self
.
_instances
[
pubkey
].
blockchain_state
=
blockchain_state
self
.
_instances
[
pubkey
].
blockchain_state
=
blockchain_state
self
.
_instances
[
pubkey
].
inner_data_changed
.
emit
(
""
)
self
.
_instances
[
pubkey
].
inner_data_changed
.
emit
(
"
BlockchainState
"
)
if
self
.
_instances
[
pubkey
].
uid
!=
uid
:
# TODO: Random bug in ucoin makes the uid change without reason in requests answers
self
.
_instances
[
pubkey
].
uid
=
uid
# https://github.com/ucoin-io/ucoin/issues/149
self
.
_instances
[
pubkey
].
inner_data_changed
.
emit
(
""
)
#if self._instances[pubkey].uid != uid:
# self._instances[pubkey].uid = uid
# self._instances[pubkey].inner_data_changed.emit("BlockchainState")
if
self
.
_instances
[
pubkey
].
local_state
==
LocalState
.
NOT_FOUND
:
if
self
.
_instances
[
pubkey
].
local_state
==
LocalState
.
NOT_FOUND
:
self
.
_instances
[
pubkey
].
local_state
=
LocalState
.
COMPLETED
self
.
_instances
[
pubkey
].
local_state
=
LocalState
.
COMPLETED
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/core/registry/identity.py
+
2
−
1
View file @
8d893615
...
@@ -237,7 +237,8 @@ class Identity(QObject):
...
@@ -237,7 +237,8 @@ class Identity(QObject):
for
uid
in
certifier_data
[
'
uids
'
]:
for
uid
in
certifier_data
[
'
uids
'
]:
# add a certifier
# add a certifier
certifier
=
{}
certifier
=
{}
certifier
[
'
identity
'
]
=
identities_registry
.
from_handled_data
(
uid
,
certifier_data
[
'
pubkey
'
],
certifier
[
'
identity
'
]
=
identities_registry
.
from_handled_data
(
uid
,
certifier_data
[
'
pubkey
'
],
BlockchainState
.
BUFFERED
)
BlockchainState
.
BUFFERED
)
block
=
community
.
bma_access
.
get
(
self
,
qtbma
.
blockchain
.
Block
,
block
=
community
.
bma_access
.
get
(
self
,
qtbma
.
blockchain
.
Block
,
{
'
number
'
:
certifier_data
[
'
meta
'
][
'
block_number
'
]})
{
'
number
'
:
certifier_data
[
'
meta
'
][
'
block_number
'
]})
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/gui/wot_tab.py
+
3
−
2
View file @
8d893615
...
@@ -52,6 +52,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -52,6 +52,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
# create node metadata from account
# create node metadata from account
self
.
_current_identity
=
None
self
.
_current_identity
=
None
self
.
draw_graph
(
self
.
account
.
identity
(
self
.
community
))
self
.
draw_graph
(
self
.
account
.
identity
(
self
.
community
))
self
.
community
.
network
.
new_block_mined
.
connect
(
self
.
refresh
)
@pyqtSlot
(
dict
)
@pyqtSlot
(
dict
)
def
handle_node_click
(
self
,
metadata
):
def
handle_node_click
(
self
,
metadata
):
...
@@ -131,8 +132,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -131,8 +132,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
"""
"""
self
.
draw_graph
(
self
.
_current_identity
)
self
.
draw_graph
(
self
.
_current_identity
)
@pyqtSlot
()
@pyqtSlot
(
str
)
def
handle_identity_change
(
self
):
def
handle_identity_change
(
self
,
request
):
self
.
refresh
()
self
.
refresh
()
def
search
(
self
):
def
search
(
self
):
...
...
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