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
682aeb7f
Commit
682aeb7f
authored
8 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix connecting to wallet
parent
91c60398
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sakia/gui/dialogs/connection_cfg/controller.py
+2
-0
2 additions, 0 deletions
src/sakia/gui/dialogs/connection_cfg/controller.py
src/sakia/gui/dialogs/connection_cfg/model.py
+2
-1
2 additions, 1 deletion
src/sakia/gui/dialogs/connection_cfg/model.py
with
4 additions
and
1 deletion
src/sakia/gui/dialogs/connection_cfg/controller.py
+
2
−
0
View file @
682aeb7f
...
@@ -202,6 +202,8 @@ class ConnectionConfigController(QObject):
...
@@ -202,6 +202,8 @@ class ConnectionConfigController(QObject):
if
self
.
model
.
node_connector
:
if
self
.
model
.
node_connector
:
await
self
.
model
.
node_connector
.
session
.
close
()
await
self
.
model
.
node_connector
.
session
.
close
()
except
(
NoPeerAvailable
,
DuniterError
,
StopIteration
)
as
e
:
except
(
NoPeerAvailable
,
DuniterError
,
StopIteration
)
as
e
:
if
not
isinstance
(
e
,
StopIteration
):
self
.
view
.
show_error
(
self
.
model
.
notification
(),
str
(
e
))
self
.
_logger
.
debug
(
str
(
e
))
self
.
_logger
.
debug
(
str
(
e
))
self
.
view
.
stacked_pages
.
setCurrentWidget
(
self
.
view
.
page_connection
)
self
.
view
.
stacked_pages
.
setCurrentWidget
(
self
.
view
.
page_connection
)
self
.
step_node
=
asyncio
.
Future
()
self
.
step_node
=
asyncio
.
Future
()
...
...
This diff is collapsed.
Click to expand it.
src/sakia/gui/dialogs/connection_cfg/model.py
+
2
−
1
View file @
682aeb7f
...
@@ -193,13 +193,14 @@ Current database is storing {1} network.""".format(node_connector.node.currency,
...
@@ -193,13 +193,14 @@ Current database is storing {1} network.""".format(node_connector.node.currency,
# cell 1 contains the uid/pubkey selected locally
# cell 1 contains the uid/pubkey selected locally
# cell 2 contains the uid/pubkey found on the network
# cell 2 contains the uid/pubkey found on the network
registered
=
(
False
,
identity
.
uid
,
None
)
registered
=
(
False
,
identity
.
uid
,
None
)
# We execute search based on pubkey
# We execute search based on pubkey
# And look for account UID
# And look for account UID
await
execute_requests
(
_parse_uid_lookup
,
identity
.
pubkey
)
await
execute_requests
(
_parse_uid_lookup
,
identity
.
pubkey
)
# If the uid wasn't found when looking for the pubkey
# If the uid wasn't found when looking for the pubkey
# We look for the uid and check for the pubkey
# We look for the uid and check for the pubkey
if
not
registered
[
0
]
and
not
registered
[
2
]:
if
not
registered
[
0
]
and
not
registered
[
2
]
and
identity
.
uid
:
await
execute_requests
(
_parse_pubkey_lookup
,
identity
.
uid
)
await
execute_requests
(
_parse_pubkey_lookup
,
identity
.
uid
)
return
registered
,
found_identity
return
registered
,
found_identity
...
...
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