Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
141e07e7
Commit
141e07e7
authored
6 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[enh]
#42
: retrieve head_block and currency params at the beginning.
parent
c7675605
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
silkaj/silkaj.py
+6
-0
6 additions, 0 deletions
silkaj/silkaj.py
with
6 additions
and
0 deletions
silkaj/silkaj.py
+
6
−
0
View file @
141e07e7
...
@@ -8,6 +8,7 @@ from silkaj.cert import send_certification
...
@@ -8,6 +8,7 @@ from silkaj.cert import send_certification
from
silkaj.commands
import
currency_info
,
difficulties
,
set_network_sort_keys
,
\
from
silkaj.commands
import
currency_info
,
difficulties
,
set_network_sort_keys
,
\
network_info
,
argos_info
,
list_issuers
network_info
,
argos_info
,
list_issuers
from
silkaj.tools
import
message_exit
from
silkaj.tools
import
message_exit
from
silkaj.network_tools
import
get_request
,
get_current_block
from
silkaj.wot
import
received_sent_certifications
,
id_pubkey_correspondence
from
silkaj.wot
import
received_sent_certifications
,
id_pubkey_correspondence
from
silkaj.auth
import
generate_auth_file
from
silkaj.auth
import
generate_auth_file
from
silkaj.license
import
display_license
from
silkaj.license
import
display_license
...
@@ -96,9 +97,14 @@ def cli():
...
@@ -96,9 +97,14 @@ def cli():
ep
[
"
domain
"
]
=
ep
[
"
domain
"
][
1
:
-
1
]
ep
[
"
domain
"
]
=
ep
[
"
domain
"
][
1
:
-
1
]
return
ep
,
cli_args
return
ep
,
cli_args
def
get_parameters
(
ep
):
head_block
=
get_current_block
(
ep
)
params
=
get_request
(
ep
,
"
blockchain/parameters
"
)
return
params
,
head_block
def
manage_cmd
(
ep
,
cli_args
):
def
manage_cmd
(
ep
,
cli_args
):
params
,
head_block
=
get_parameters
(
ep
)
if
cli_args
.
subcmd
==
"
about
"
:
if
cli_args
.
subcmd
==
"
about
"
:
about
()
about
()
elif
cli_args
.
subcmd
==
"
info
"
:
elif
cli_args
.
subcmd
==
"
info
"
:
...
...
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