Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
16
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
cellframe-sdk
Commits
8edb6429
Commit
8edb6429
authored
4 years ago
by
Aleksei Voronin
Browse files
Options
Downloads
Patches
Plain Diff
[*] small fixes in help for token declaration
parent
7408872c
No related branches found
Branches containing commit
No related tags found
1 merge request
!72
[*] small fixes in help for token declaration
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/chain/dap_chain_ledger.c
+3
-3
3 additions, 3 deletions
modules/chain/dap_chain_ledger.c
modules/net/dap_chain_node_cli.c
+2
-2
2 additions, 2 deletions
modules/net/dap_chain_node_cli.c
with
5 additions
and
5 deletions
modules/chain/dap_chain_ledger.c
+
3
−
3
View file @
8edb6429
...
...
@@ -252,7 +252,7 @@ int dap_chain_ledger_token_add(dap_ledger_t * a_ledger, dap_chain_datum_token_t
switch
(
a_token
->
type
){
case
DAP_CHAIN_DATUM_TOKEN_TYPE_SIMPLE
:
l_token_item
->
total_supply
=
a_token
->
header_private
.
total_supply
;
log_it
(
L_NOTICE
,
"Private token %s added (total_supply = %.1llf signs_valid=%hu signs_total=%hu type=DAP_CHAIN_DATUM_TOKEN_PRIVATE )"
,
log_it
(
L_NOTICE
,
"Private token %s added (total_supply = %.1llf
total_
signs_valid=%hu signs_total=%hu type=DAP_CHAIN_DATUM_TOKEN_PRIVATE )"
,
a_token
->
ticker
,
dap_chain_balance_to_coins
(
a_token
->
header_private
.
total_supply
),
a_token
->
header_private
.
signs_valid
,
a_token
->
header_private
.
signs_total
);
break
;
...
...
@@ -333,7 +333,7 @@ int dap_chain_ledger_token_emission_add_check(dap_ledger_t *a_ledger, const dap_
HASH_FIND
(
hh
,
l_token_item
?
l_token_item
->
token_emissions
:
l_ledger_priv
->
treshold_emissions
,
&
l_token_emission_hash
,
sizeof
(
l_token_emission_hash
),
l_token_emission_item
);
if
(
l_token_emission_item
)
{
log_it
(
L_ERROR
,
"Can't add token emission datum of %llu %s (
0x
%s ): already present in cache"
,
log_it
(
L_ERROR
,
"Can't add token emission datum of %llu %s ( %s ): already present in cache"
,
a_token_emission
->
hdr
.
value
,
c_token_ticker
,
l_hash_str
);
ret
=
-
1
;
}
else
if
(
(
!
l_token_item
)
&&
(
HASH_COUNT
(
l_ledger_priv
->
treshold_emissions
)
>=
s_treshold_emissions_max
))
{
...
...
@@ -412,7 +412,7 @@ int dap_chain_ledger_token_emission_add(dap_ledger_t *a_ledger,
ret
=
-
2
;
}
}
else
{
log_it
(
L_ERROR
,
"Can't add token emission datum of %llu %s (
0x
%s )"
,
log_it
(
L_ERROR
,
"Can't add token emission datum of %llu %s ( %s )"
,
a_token_emission
->
hdr
.
value
,
c_token_ticker
,
l_hash_str
);
ret
=
-
1
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/net/dap_chain_node_cli.c
+
2
−
2
View file @
8edb6429
...
...
@@ -831,7 +831,7 @@ int dap_chain_node_cli_init(dap_config_t * g_config)
"
\t
-flags_set <value>:
\t
Set list of flags from <value> to token declaration
\n
"
"
\t
-flags_unset <value>:
\t
Unset list of flags from <value> from token declaration
\n
"
"
\t
-total_supply <value>:
\t
Set total supply - emission's maximum - to the <value>
\n
"
"
\t
-signs_valid <value>:
\t
Set valid signatures count's minimum
\n
"
"
\t
-
total_
signs_valid <value>:
\t
Set valid signatures count's minimum
\n
"
"
\t
-signs_add <value>:
\t
Add signature's pkey fingerprint to the list of owners
\n
"
"
\t
-signs_remove <value>:
\t
Remove signature's pkey fingerprint from the owners
\n
"
"
\n
Datum type allowed/blocked updates:
\n
"
...
...
@@ -895,7 +895,7 @@ int dap_chain_node_cli_init(dap_config_t * g_config)
"General:
\n
"
"
\t
-flags <value>:
\t
List of flags from <value> to token declaration
\n
"
"
\t
-total_supply <value>:
\t
Set total supply - emission's maximum - to the <value>
\n
"
"
\t
-signs_valid <value>:
\t
Set valid signatures count's minimum
\n
"
"
\t
-
total_
signs_valid <value>:
\t
Set valid signatures count's minimum
\n
"
"
\t
-signs <value>:
\t
Signature's fingerprint list
\n
"
"
\n
Datum type allowed/blocked:
\n
"
"
\t
-datum_type_allowed <value>:
\t
Set allowed datum type(s)
\n
"
...
...
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